Package org.apache.xalan.lib.sql
Class ObjectArray
- java.lang.Object
-
- org.apache.xalan.lib.sql.ObjectArray
-
public class ObjectArray extends java.lang.Object
Provide a simple Array storage mechinsim where native Arrays will be use as the basic storage mechinism but the Arrays will be stored as blocks. The size of the Array blocks is determine during object construction. This is intended to be a simple storage mechinsim where the storage only can grow. Array elements can not be removed, only added to.
-
-
Constructor Summary
Constructors Constructor Description ObjectArray()
ObjectArray(int minArraySize)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
append(java.lang.Object o)
java.lang.Object
getAt(int idx)
static void
main(java.lang.String[] args)
void
setAt(int idx, java.lang.Object obj)
-
-
-
Method Detail
-
getAt
public java.lang.Object getAt(int idx)
- Parameters:
idx
- Index of the Object in the Array
-
setAt
public void setAt(int idx, java.lang.Object obj)
- Parameters:
idx
- Index of the Object in the Arrayobj
- , The value to set in the Array
-
append
public int append(java.lang.Object o)
- Parameters:
o
- Object to be appended to the Array
-
main
public static void main(java.lang.String[] args)
- Parameters:
args
-
-
-