goodslib
Class AnyArray

java.lang.Object
  extended bygoodsjpi.Persistent
      extended bygoodslib.AnyArray
All Implemented Interfaces:
java.io.Serializable
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)

See Also:
Serialized Form

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, onLoad
 
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