📄 array2005.java
字号:
package net.aetherial.gis.our.tomap.years.array;
import java.io.File;
/**
* <p>Title: </p>
*
* <p>Description: 本类代表2005年的数组,包括</p>
*
* <ul>
* <li>路线的名称</li>
* <li>控制点1的经纬度</li>
* <li>控制点2的经纬度</li>
* <li>控制点3的经纬度</li>
* <li>控制点4的经纬度</li>
* <li>控制点5的经纬度</li>
* </ul>
* <p>Copyright: Copyright (c) 2004</p>
*
* <p>Company: </p>
*
* @author not attributable
* @version 1.0
*/
public class Array2005{
//protected File arrayFile = null;
private ArrayRecord[] records = null;
public Array2005() {
}
/**
* 添加记录
*/
public void addRecord(ArrayRecord record){
ArrayRecord[] temp = this.records;
this.records = null;
if (temp == null) {
this.records = new ArrayRecord[1];
this.records[0] = record;
}
else {
this.records = new ArrayRecord[temp.length + 1];
for (int i = 0; i < temp.length; i++) {
this.records[i] = temp[i];
}
this.records[temp.length] = record;
}
}
/**
* 设置记录
*/
public void setRecords(ArrayRecord[] records) {
this.records = records;
}
/**
* 取得记录
*/
public ArrayRecord[] getRecords() {
return records;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -