public class BoundedSortedSet<V> extends TreeSet<V>
Constructor and Description |
---|
BoundedSortedSet(int max) |
BoundedSortedSet(int max,
Comparator<? super V> cmp) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(V e) |
boolean |
addAll(Collection<? extends V> clctn) |
int |
getMaxSize()
Returns the maximum size allowed for the bounded set
|
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 BoundedSortedSet(int max)
public BoundedSortedSet(int max, Comparator<? super V> cmp)
public boolean add(V e)
public boolean addAll(Collection<? extends V> clctn)
public int getMaxSize()
Copyright © 2017. All rights reserved.