public class BoundedSet<E> extends MapBackedSetBase<E>
Constructor and Description |
---|
BoundedSet(int maxSize)
Constructor.
|
add, clear, contains, isEmpty, iterator, remove, size
addAll, containsAll, retainAll, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public BoundedSet(int maxSize)
maxSize
- the set will never have more than this number of elements. If more
are inserted, the oldest inserted ones are removed.