org.cementj.collect
Class IntegerArrayList

java.lang.Object
  extended by org.cementj.collect.IntegerArrayList
All Implemented Interfaces:
java.io.Serializable

public class IntegerArrayList
extends java.lang.Object
implements java.io.Serializable

An arraylist for primitive "int" data types. This class does NOT implement java.util.List.

Copyright: Delta Vortex Technologies, 2002.

See Also:
Serialized Form

Constructor Summary
IntegerArrayList()
           
IntegerArrayList(int initialCapacity)
           
IntegerArrayList(int initialCapacity, int capacityIncrement)
           
 
Method Summary
 void add(int value)
          Adds a value to the end of the list.
 int get(int index)
          Returns value at specified index from the list.
 int length()
          Returns length of list.
 int[] toArray()
          Converts list to an array.
 byte[] toByteArray()
          Returns list as byte array.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntegerArrayList

public IntegerArrayList()

IntegerArrayList

public IntegerArrayList(int initialCapacity)

IntegerArrayList

public IntegerArrayList(int initialCapacity,
                        int capacityIncrement)
Method Detail

add

public void add(int value)
Adds a value to the end of the list.

Parameters:
value -

get

public int get(int index)
Returns value at specified index from the list.

Parameters:
index -
Returns:
value

toArray

public int[] toArray()
Converts list to an array.

Returns:
listAsArray

toByteArray

public byte[] toByteArray()
Returns list as byte array.

Returns:
byteArray

length

public int length()
Returns length of list.

Returns:
listLength


Copyright © 2003 Delta Vortex Technologies, Inc. All Rights Reserved.