goodslib
Class AnyArray

java.lang.Object
  |
  +--goodsjpi.Persistent
        |
        +--goodslib.AnyArray
Direct Known Subclasses:
ArrayOfBoolean, ArrayOfByte, ArrayOfChar, ArrayOfDouble, ArrayOfFloat, ArrayOfInt, ArrayOfLong, ArrayOfObject, ArrayOfShort

public class AnyArray
extends Persistent

AnyArray is a base class for all array classes. It only serves to hold the length (integer)


Field Summary
protected  int used
          used holds the length of the array.
 
Fields inherited from class goodsjpi.Persistent
defaultMetaobject, metaobject
 
Constructor Summary
AnyArray()
           
 
Method Summary
 int length()
          length returns the length
 
Methods inherited from class goodsjpi.Persistent
attachToStorage, clone, clusterWith, finalize, getDatabase, getOid, getStorageId, hashCode
 
Methods inherited from class java.lang.Object
equals, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

used

protected int used
used holds the length of the array. The actual memory allocation may be larger, but "used" many objects are seen from the outside

Constructor Detail

AnyArray

public AnyArray()
Method Detail

length

public int length()
length returns the length

Returns:
an int value, the length of the array