📄 objectdatarecords.java
字号:
/**
************************************************************
* The VML Report
*
*
*
************************************************************
* @author duke
* @version 1.2
* @date 2004-8-10 14:37
*/
package com.eshaper.appbuilder.objectbase;
public class ObjectDataRecords
{
public ObjectDataRecords()
{
}
public String getName()
{
return name;
}
public int getCount()
{
return objs.length;
}
public ObjectDataRecord getRecord(int index)
{
if (index<0 || index>=getCount()) return null;
return objs[index];
}
public void addRecord(ObjectDataRecord obj)
{
int len = objs.length ;
ObjectDataRecord[] newobjs = new ObjectDataRecord[len + 1];
System.arraycopy(objs, 0, newobjs, 0, len);
newobjs[len] = obj;
objs = newobjs;
}
private String name="";
private ObjectDataRecord[] objs = new ObjectDataRecord[0];
public static void main(String args[]) throws Exception
{
System.out.println("ObjectDataRecords");
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -