org.apache.xalan.lib.sql

Class ObjectArray

public class ObjectArray extends 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
ObjectArray()
ObjectArray(int minArraySize)
Method Summary
intappend(Object o)
ObjectgetAt(int idx)
static voidmain(String[] args)
voidsetAt(int idx, Object obj)

Constructor Detail

ObjectArray

public ObjectArray()

ObjectArray

public ObjectArray(int minArraySize)

Parameters: minArraySize The size of the Arrays stored in the Vector

Method Detail

append

public int append(Object o)

Parameters: o Object to be appended to the Array

getAt

public Object getAt(int idx)

Parameters: idx Index of the Object in the Array

main

public static void main(String[] args)

Parameters: args

setAt

public void setAt(int idx, Object obj)

Parameters: idx Index of the Object in the Array obj , The value to set in the Array

Copyright B) 2006 Apache XML Project. All Rights Reserved.