objectdatarecords.java
来自「创建中间企业对象层」· Java 代码 · 共 53 行
JAVA
53 行
/**
************************************************************
* 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 + =
减小字号Ctrl + -
显示快捷键?