public class BoundedSet<E> extends MapBackedSetBase<E>
| Constructor and Description |
|---|
BoundedSet(int maxSize)
Constructor.
|
add, clear, contains, isEmpty, iterator, remove, sizeaddAll, containsAll, retainAll, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic 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.