| Modifier and Type | Field and Description |
|---|---|
| private final Comparator | |
| private final List |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | add(final E
element to be added to this set e)Overrides java. Implements java. |
| public E | ceiling(final E
the value to match e)Implements java. null if there is no such element.
|
| public Comparator | comparator()
Implements java. null if this set uses the natural ordering of its elements.
|
| public Iterator | descendingIterator()
Implements java. |
| public NavigableSet | descendingSet()
Implements java. |
| public E | first()
Implements java. |
| public E | floor(final E
the value to match e)Implements java. null if there is no such element.
|
| public NavigableSet | headSet(final E
high endpoint of the returned set toElement, final boolean true if the high endpoint
is to be included in the returned viewImplements java. inclusive is true) toElement.
|
| public SortedSet | headSet(final E
high endpoint (exclusive) of the returned set toElement)Implements java. toElement.
|
| public E | higher(final E
the value to match e)Implements java. null if there is no such element.
|
| public Iterator | iterator()
Implements abstract java. Implements java. |
| public E | last()
Implements java. |
| public E | lower(final E
the value to match e)Implements java. null if there is no such element.
|
| public E | pollFirst()
Implements java. null if this set is empty.
|
| public E | pollLast()
Implements java. null if this set is empty.
|
| public int | size()
Implements abstract java. Implements java. |
| public NavigableSet | subSet(final E
low endpoint of the returned set fromElement, final boolean true if the low endpoint
is to be included in the returned viewhigh endpoint of the returned set toElement, final boolean true if the high endpoint
is to be included in the returned viewImplements java. fromElement to toElement.
|
| public SortedSet | subSet(final E
low endpoint (inclusive) of the returned set fromElement, final E high endpoint (exclusive) of the returned set toElement)Implements java. fromElement, inclusive, to toElement,
exclusive.
|
| public NavigableSet | tailSet(final E
low endpoint of the returned set fromElement, final boolean true if the low endpoint
is to be included in the returned viewImplements java. inclusive is true) fromElement.
|
| public SortedSet | tailSet(final E
low endpoint (inclusive) of the returned set fromElement)Implements java. fromElement.
|
| comparator | back to summary |
|---|---|
| private final Comparator<? super E> comparator | |
| entries | back to summary |
|---|---|
| private final List<E> entries | |
| FlatNavigableSet | back to summary |
|---|---|
| public FlatNavigableSet(final Comparator<? super E> comparator) | |
| add | back to summary |
|---|---|
| public boolean add(final E e) Overrides java. Implements java. Doc from java. Adds the specified element to this set if it is not already present
(optional operation). More formally, adds the specified element
The stipulation above does not imply that sets must accept all
elements; sets may refuse to add any particular element, including
| |
| ceiling | back to summary |
|---|---|
| public E ceiling(final E e) Implements java. Doc from java. Returns the least element in this set greater than or equal to
the given element, or
| |
| comparator | back to summary |
|---|---|
| public Comparator Implements java. Doc from java. Returns the comparator used to order the elements in this set,
or
| |
| descendingIterator | back to summary |
|---|---|
| public Iterator Implements java. Doc from java. Returns an iterator over the elements in this set, in descending order.
Equivalent in effect to
| |
| descendingSet | back to summary |
|---|---|
| public NavigableSet Implements java. Doc from java. Returns a reverse order view of the elements contained in this set.
The descending set is backed by this set, so changes to the set are
reflected in the descending set, and vice-versa. If either set is
modified while an iteration over either set is in progress (except
through the iterator's own The returned set has an ordering equivalent to
| |
| first | back to summary |
|---|---|
| public E first() Implements java. Doc from java. Returns the first (lowest) element currently in this set.
| |
| floor | back to summary |
|---|---|
| public E floor(final E e) Implements java. Doc from java. Returns the greatest element in this set less than or equal to
the given element, or
| |
| headSet | back to summary |
|---|---|
| public NavigableSet Implements java. Doc from java. Returns a view of the portion of this set whose elements are less than
(or equal to, if The returned set will throw an
| |
| headSet | back to summary |
|---|---|
| public SortedSet Implements java. Doc from java. Returns a view of the portion of this set whose elements are
strictly less than The returned set will throw an Equivalent to
| |
| higher | back to summary |
|---|---|
| public E higher(final E e) Implements java. Doc from java. Returns the least element in this set strictly greater than the
given element, or
| |
| iterator | back to summary |
|---|---|
| public Iterator Implements abstract java. Implements java. Doc from java. Returns an iterator over the elements in this set, in ascending order.
| |
| last | back to summary |
|---|---|
| public E last() Implements java. Doc from java. Returns the last (highest) element currently in this set.
| |
| lower | back to summary |
|---|---|
| public E lower(final E e) Implements java. Doc from java. Returns the greatest element in this set strictly less than the
given element, or
| |
| pollFirst | back to summary |
|---|---|
| public E pollFirst() Implements java. Doc from java. Retrieves and removes the first (lowest) element,
or returns
| |
| pollLast | back to summary |
|---|---|
| public E pollLast() Implements java. Doc from java. Retrieves and removes the last (highest) element,
or returns
| |
| size | back to summary |
|---|---|
| public int size() Implements abstract java. Implements java. Doc from java. Returns the number of elements in this set (its cardinality). If this
set contains more than
| |
| subSet | back to summary |
|---|---|
| public NavigableSet Implements java. Doc from java. Returns a view of the portion of this set whose elements range from
The returned set will throw an
| |
| subSet | back to summary |
|---|---|
| public SortedSet Implements java. Doc from java. Returns a view of the portion of this set whose elements range
from The returned set will throw an Equivalent to
| |
| tailSet | back to summary |
|---|---|
| public NavigableSet Implements java. Doc from java. Returns a view of the portion of this set whose elements are greater
than (or equal to, if The returned set will throw an
| |
| tailSet | back to summary |
|---|---|
| public SortedSet Implements java. Doc from java. Returns a view of the portion of this set whose elements are
greater than or equal to The returned set will throw an Equivalent to
| |