public class BoundedTreeSet<E> extends TreeSet<E>
TreeSet
that is bounded by size.Constructor and Description |
---|
BoundedTreeSet(Comparator<? super E> comparator,
int size) |
BoundedTreeSet(int size) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(E e) |
boolean |
addAll(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
equals, hashCode, removeAll
containsAll, retainAll, toArray, toArray, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
containsAll, equals, hashCode, removeAll, retainAll, toArray, toArray
parallelStream, removeIf, stream
public BoundedTreeSet(int size)
public BoundedTreeSet(Comparator<? super E> comparator, int size)
public boolean add(E e)
Copyright © 2009–2015. All rights reserved.