Prism.util
Class DynamicArray

java.lang.Object
  |
  +--Prism.util.DynamicArray

public class DynamicArray
extends java.lang.Object


Field Summary
 int head
           
 java.lang.Object[] headList
           
 java.lang.Object[] iterator
           
 int iteratorIndex
           
 int segmentLength
           
 int size
           
 java.lang.Object[] staticHead
           
 int tail
           
 java.lang.Object[] tailList
           
 
Constructor Summary
DynamicArray()
           
DynamicArray(int initialLength)
           
 
Method Summary
 void add(java.lang.Object o)
           
 java.lang.Object get(int index)
           
 java.lang.Object getFirst()
           
 java.lang.Object getNext()
           
 boolean hasNext()
           
 int indexOf(java.lang.Object o)
           
 void remove(int index)
           
 void remove(java.lang.Object o)
           
 void reset()
           
 int size()
           
 java.lang.String toString()
           
 void waitOnList()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

headList

public java.lang.Object[] headList

tailList

public java.lang.Object[] tailList

iterator

public java.lang.Object[] iterator

staticHead

public java.lang.Object[] staticHead

head

public int head

tail

public int tail

iteratorIndex

public int iteratorIndex

size

public int size

segmentLength

public int segmentLength
Constructor Detail

DynamicArray

public DynamicArray()

DynamicArray

public DynamicArray(int initialLength)
Method Detail

add

public void add(java.lang.Object o)

waitOnList

public void waitOnList()

getFirst

public java.lang.Object getFirst()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getNext

public java.lang.Object getNext()

reset

public void reset()

hasNext

public boolean hasNext()

remove

public void remove(java.lang.Object o)

remove

public void remove(int index)

get

public java.lang.Object get(int index)

indexOf

public int indexOf(java.lang.Object o)

size

public int size()