com.mizar.commons.collections
Class CacheList<E>

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList<E>
              extended by com.mizar.commons.collections.CacheList<E>
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<E>, java.util.Collection<E>, java.util.List<E>, java.util.RandomAccess

public class CacheList<E>
extends java.util.ArrayList<E>

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
CacheList()
           
CacheList(java.util.Collection<? extends E> c)
           
CacheList(int initialCapacity)
           
CacheList(int initialCapacity, int max)
           
 
Method Summary
 boolean add(E o)
           
 int getMax()
           
 void setMax(int max)
           
 
Methods inherited from class java.util.ArrayList
add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList
 

Constructor Detail

CacheList

public CacheList()

CacheList

public CacheList(int initialCapacity)

CacheList

public CacheList(java.util.Collection<? extends E> c)

CacheList

public CacheList(int initialCapacity,
                 int max)
Method Detail

add

public boolean add(E o)
Specified by:
add in interface java.util.Collection<E>
Specified by:
add in interface java.util.List<E>
Overrides:
add in class java.util.ArrayList<E>

setMax

public void setMax(int max)

getMax

public int getMax()