util
Class PerformanceMeter.BoundList<T>

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList<T>
              extended by util.PerformanceMeter.BoundList<T>
All Implemented Interfaces:
Serializable, Cloneable, Iterable<T>, Collection<T>, List<T>, RandomAccess
Enclosing class:
PerformanceMeter

protected static class PerformanceMeter.BoundList<T>
extends ArrayList<T>

Bound lists do not grow above a certain size, they lose elemtns at their head, but retain the very first entry.

See Also:
Serialized Form

Field Summary
private  int bound
           
private static int DEFSIZE
           
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
PerformanceMeter.BoundList()
           
PerformanceMeter.BoundList(int maxsize)
           
 
Method Summary
 boolean add(T what)
           
 
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
 

Field Detail

DEFSIZE

private static final int DEFSIZE
See Also:
Constant Field Values

bound

private int bound
Constructor Detail

PerformanceMeter.BoundList

public PerformanceMeter.BoundList()

PerformanceMeter.BoundList

public PerformanceMeter.BoundList(int maxsize)
Method Detail

add

public boolean add(T what)
Specified by:
add in interface Collection<T>
Specified by:
add in interface List<T>
Overrides:
add in class ArrayList<T>