@GwtIncompatible final class DescendingImmutableSortedSet<E> extends ImmutableSortedSet<E>
ImmutableSortedSet.descendingSet()
.ImmutableSortedSet.Builder<E>
ImmutableSet.Indexed<E>
Modifier and Type | Field and Description |
---|---|
private ImmutableSortedSet<E> |
forward |
comparator, descendingSet, SPLITERATOR_CHARACTERISTICS
HASH_FLOODING_FPP, MAX_RUN_MULTIPLIER, MAX_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, writeReplace
builder, builderWithExpectedSize, toImmutableSet
asList, chooseTableSize, createAsList, equals, hashCode, hashFloodingDetected, isHashCodeFast, maxRunBeforeFallback, rebuildHashTable
add, addAll, clear, copyIntoArray, remove, removeAll, removeIf, retainAll, toArray, toArray
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
private final ImmutableSortedSet<E> forward
DescendingImmutableSortedSet(ImmutableSortedSet<E> forward)
public boolean contains(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()
ImmutableCollection
iterator
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>
@GwtIncompatible(value="NavigableSet") public ImmutableSortedSet<E> descendingSet()
descendingSet
in interface java.util.NavigableSet<E>
descendingSet
in class ImmutableSortedSet<E>
@GwtIncompatible(value="NavigableSet") public UnmodifiableIterator<E> descendingIterator()
descendingIterator
in interface java.util.NavigableSet<E>
descendingIterator
in class ImmutableSortedSet<E>
@GwtIncompatible(value="NavigableSet") ImmutableSortedSet<E> createDescendingSet()
createDescendingSet
in class ImmutableSortedSet<E>
public E lower(E element)
lower
in interface java.util.NavigableSet<E>
lower
in class ImmutableSortedSet<E>
public E floor(E element)
floor
in interface java.util.NavigableSet<E>
floor
in class ImmutableSortedSet<E>
public E ceiling(E element)
ceiling
in interface java.util.NavigableSet<E>
ceiling
in class ImmutableSortedSet<E>
public E higher(E element)
higher
in interface java.util.NavigableSet<E>
higher
in class ImmutableSortedSet<E>
int indexOf(java.lang.Object target)
ImmutableSortedSet
indexOf
in class ImmutableSortedSet<E>
boolean isPartialView()
ImmutableCollection
true
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>