public class BoundedTreeSet<N extends Comparable> extends ConcurrentSkipListSet<N> implements Serializable
Modifier and Type | Field and Description |
---|---|
protected int |
maxSize |
Constructor and Description |
---|
BoundedTreeSet(int maxSize) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(N n) |
ceiling, clear, clone, comparator, contains, descendingIterator, descendingSet, equals, first, floor, headSet, headSet, higher, isEmpty, iterator, last, lower, pollFirst, pollLast, remove, removeAll, size, spliterator, subSet, subSet, tailSet, tailSet
hashCode
addAll, containsAll, retainAll, toArray, toArray, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
addAll, containsAll, hashCode, retainAll, toArray, toArray
parallelStream, removeIf, stream
public boolean add(N n)
add
in interface Collection<N extends Comparable>
add
in interface Set<N extends Comparable>
add
in class ConcurrentSkipListSet<N extends Comparable>
Copyright © 2020. All rights reserved.