final class DescendingImmutableSortedSet<E> extends ImmutableSortedSet<E>
ImmutableSortedSet.descendingSet().ImmutableSortedSet.Builder<E>ImmutableSet.CachingAsList<E>, ImmutableSet.Indexed<E>| Modifier and Type | Field and Description |
|---|---|
private ImmutableSortedSet<E> |
forward |
comparator, descendingSet, SPLITERATOR_CHARACTERISTICSMAX_TABLE_SIZE| Constructor and Description |
|---|
DescendingImmutableSortedSet(ImmutableSortedSet<E> forward) |
| Modifier and Type | Method and Description |
|---|---|
E |
ceiling(E element) |
boolean |
contains(java.lang.Object object) |
(package private) ImmutableSortedSet<E> |
createDescendingSet() |
UnmodifiableIterator<E> |
descendingIterator() |
ImmutableSortedSet<E> |
descendingSet() |
E |
floor(E element) |
(package private) ImmutableSortedSet<E> |
headSetImpl(E toElement,
boolean inclusive) |
E |
higher(E element) |
(package private) int |
indexOf(java.lang.Object target)
Returns the position of an element within the set, or -1 if not present.
|
(package private) boolean |
isPartialView()
Returns
true if this immutable collection's implementation contains references to
user-created objects that aren't accessible via this collection's methods. |
UnmodifiableIterator<E> |
iterator()
Returns an unmodifiable iterator across the elements in this collection.
|
E |
lower(E element) |
int |
size() |
(package private) ImmutableSortedSet<E> |
subSetImpl(E fromElement,
boolean fromInclusive,
E toElement,
boolean toInclusive) |
(package private) ImmutableSortedSet<E> |
tailSetImpl(E fromElement,
boolean inclusive) |
comparator, construct, copyOf, copyOf, copyOf, copyOf, copyOf, copyOf, copyOf, copyOfSorted, emptySet, first, headSet, headSet, last, naturalOrder, of, of, of, of, of, of, of, orderedBy, pollFirst, pollLast, reverseOrder, spliterator, subSet, subSet, tailSet, tailSet, toImmutableSortedSet, unsafeCompare, unsafeCompare, writeReplacebuilder, builderWithExpectedSize, toImmutableSetasList, createAsListchooseTableSize, equals, hashCode, isHashCodeFastadd, addAll, clear, copyIntoArray, internalArray, internalArrayEnd, internalArrayStart, remove, removeAll, removeIf, retainAll, toArray, toArrayclone, finalize, getClass, notify, notifyAll, wait, wait, waitprivate final ImmutableSortedSet<E> forward
DescendingImmutableSortedSet(ImmutableSortedSet<E> forward)
public boolean contains(@CheckForNull
java.lang.Object object)
contains in interface java.util.Collection<E>contains in interface java.util.Set<E>contains in class ImmutableCollection<E>public int size()
public UnmodifiableIterator<E> iterator()
ImmutableCollectioniterator in interface SortedIterable<E>iterator in interface java.lang.Iterable<E>iterator in interface java.util.Collection<E>iterator in interface java.util.NavigableSet<E>iterator in interface java.util.Set<E>iterator in class ImmutableSortedSet<E>ImmutableSortedSet<E> headSetImpl(E toElement, boolean inclusive)
headSetImpl in class ImmutableSortedSet<E>ImmutableSortedSet<E> subSetImpl(E fromElement, boolean fromInclusive, E toElement, boolean toInclusive)
subSetImpl in class ImmutableSortedSet<E>ImmutableSortedSet<E> tailSetImpl(E fromElement, boolean inclusive)
tailSetImpl in class ImmutableSortedSet<E>public ImmutableSortedSet<E> descendingSet()
descendingSet in interface java.util.NavigableSet<E>descendingSet in class ImmutableSortedSet<E>public UnmodifiableIterator<E> descendingIterator()
descendingIterator in interface java.util.NavigableSet<E>descendingIterator in class ImmutableSortedSet<E>ImmutableSortedSet<E> createDescendingSet()
createDescendingSet in class ImmutableSortedSet<E>@CheckForNull public E lower(E element)
lower in interface java.util.NavigableSet<E>lower in class ImmutableSortedSet<E>@CheckForNull public E floor(E element)
floor in interface java.util.NavigableSet<E>floor in class ImmutableSortedSet<E>@CheckForNull public E ceiling(E element)
ceiling in interface java.util.NavigableSet<E>ceiling in class ImmutableSortedSet<E>@CheckForNull public E higher(E element)
higher in interface java.util.NavigableSet<E>higher in class ImmutableSortedSet<E>int indexOf(@CheckForNull
java.lang.Object target)
ImmutableSortedSetindexOf in class ImmutableSortedSet<E>boolean isPartialView()
ImmutableCollectiontrue if this immutable collection's implementation contains references to
user-created objects that aren't accessible via this collection's methods. This is generally
used to determine whether copyOf implementations should make an explicit copy to avoid
memory leaks.isPartialView in class ImmutableCollection<E>