edu.jhu.tmaj.client.image.data
Class FastCollection<E>

java.lang.Object
  extended by edu.jhu.tmaj.client.image.data.FastCollection<E>

public final class FastCollection<E>
extends java.lang.Object

Similar to a List, this class provides a fastIndexOf(object) method that is quicker. The downside is, that unlike a list, elements can never be removed from this class, only added.


Constructor Summary
FastCollection()
           
 
Method Summary
 void add(E object)
           
 int fastIndexOf(E object)
           
 E get(int index)
           
 java.util.List<E> getListCopy()
           
 int size()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FastCollection

public FastCollection()
Method Detail

getListCopy

public java.util.List<E> getListCopy()

add

public void add(E object)

fastIndexOf

public int fastIndexOf(E object)

size

public int size()

get

public E get(int index)

toString

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