public class LimitedTreeSet<E>
extends java.util.TreeSet<E>
TreeSet
with an upper bound on size (if an element will be inserted, the lowest value will be removed)Constructor and Description |
---|
LimitedTreeSet(int maxSize) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(E e) |
boolean |
addAll(java.util.Collection<? extends E> c) |
ceiling, clear, clone, comparator, contains, descendingIterator, descendingSet, first, floor, headSet, headSet, higher, isEmpty, iterator, last, lower, pollFirst, pollLast, remove, size, spliterator, subSet, subSet, tailSet, tailSet
containsAll, retainAll, toArray, toArray, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
public boolean add(E e)