Package com.google.common.collect
Class DescendingImmutableSortedSet<E>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- com.google.common.collect.ImmutableCollection<E>
-
- com.google.common.collect.ImmutableSet<E>
-
- com.google.common.collect.ImmutableSortedSetFauxverideShim<E>
-
- com.google.common.collect.ImmutableSortedSet<E>
-
- com.google.common.collect.DescendingImmutableSortedSet<E>
-
- All Implemented Interfaces:
SortedIterable<E>,java.io.Serializable,java.lang.Iterable<E>,java.util.Collection<E>,java.util.NavigableSet<E>,java.util.Set<E>,java.util.SortedSet<E>
@GwtIncompatible final class DescendingImmutableSortedSet<E> extends ImmutableSortedSet<E>
Skeletal implementation ofImmutableSortedSet.descendingSet().
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.common.collect.ImmutableSortedSet
ImmutableSortedSet.Builder<E>
-
Nested classes/interfaces inherited from class com.google.common.collect.ImmutableSet
ImmutableSet.Indexed<E>
-
-
Field Summary
Fields Modifier and Type Field Description private ImmutableSortedSet<E>forward-
Fields inherited from class com.google.common.collect.ImmutableSortedSet
comparator, descendingSet, SPLITERATOR_CHARACTERISTICS
-
Fields inherited from class com.google.common.collect.ImmutableSet
HASH_FLOODING_FPP, MAX_RUN_MULTIPLIER, MAX_TABLE_SIZE
-
-
Constructor Summary
Constructors Constructor Description DescendingImmutableSortedSet(ImmutableSortedSet<E> forward)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Eceiling(E element)booleancontains(java.lang.Object object)(package private) ImmutableSortedSet<E>createDescendingSet()UnmodifiableIterator<E>descendingIterator()ImmutableSortedSet<E>descendingSet()Efloor(E element)(package private) ImmutableSortedSet<E>headSetImpl(E toElement, boolean inclusive)Ehigher(E element)(package private) intindexOf(java.lang.Object target)Returns the position of an element within the set, or -1 if not present.(package private) booleanisPartialView()Returnstrueif 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.Elower(E element)intsize()(package private) ImmutableSortedSet<E>subSetImpl(E fromElement, boolean fromInclusive, E toElement, boolean toInclusive)(package private) ImmutableSortedSet<E>tailSetImpl(E fromElement, boolean inclusive)-
Methods inherited from class com.google.common.collect.ImmutableSortedSet
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
-
Methods inherited from class com.google.common.collect.ImmutableSortedSetFauxverideShim
builder, builderWithExpectedSize, copyOf, of, of, of, of, of, of, toImmutableSet
-
Methods inherited from class com.google.common.collect.ImmutableSet
asList, chooseTableSize, createAsList, equals, hashCode, hashFloodingDetected, isHashCodeFast, rebuildHashTable
-
Methods inherited from class com.google.common.collect.ImmutableCollection
add, addAll, clear, copyIntoArray, internalArray, internalArrayEnd, internalArrayStart, remove, removeAll, removeIf, retainAll, toArray, toArray
-
-
-
-
Field Detail
-
forward
private final ImmutableSortedSet<E> forward
-
-
Constructor Detail
-
DescendingImmutableSortedSet
DescendingImmutableSortedSet(ImmutableSortedSet<E> forward)
-
-
Method Detail
-
contains
public boolean contains(java.lang.Object object)
- Specified by:
containsin interfacejava.util.Collection<E>- Specified by:
containsin interfacejava.util.Set<E>- Specified by:
containsin classImmutableCollection<E>
-
size
public int size()
-
iterator
public UnmodifiableIterator<E> iterator()
Description copied from class:ImmutableCollectionReturns an unmodifiable iterator across the elements in this collection.- Specified by:
iteratorin interfacejava.util.Collection<E>- Specified by:
iteratorin interfacejava.lang.Iterable<E>- Specified by:
iteratorin interfacejava.util.NavigableSet<E>- Specified by:
iteratorin interfacejava.util.Set<E>- Specified by:
iteratorin interfaceSortedIterable<E>- Specified by:
iteratorin classImmutableSortedSet<E>
-
headSetImpl
ImmutableSortedSet<E> headSetImpl(E toElement, boolean inclusive)
- Specified by:
headSetImplin classImmutableSortedSet<E>
-
subSetImpl
ImmutableSortedSet<E> subSetImpl(E fromElement, boolean fromInclusive, E toElement, boolean toInclusive)
- Specified by:
subSetImplin classImmutableSortedSet<E>
-
tailSetImpl
ImmutableSortedSet<E> tailSetImpl(E fromElement, boolean inclusive)
- Specified by:
tailSetImplin classImmutableSortedSet<E>
-
descendingSet
@GwtIncompatible("NavigableSet") public ImmutableSortedSet<E> descendingSet()
- Specified by:
descendingSetin interfacejava.util.NavigableSet<E>- Overrides:
descendingSetin classImmutableSortedSet<E>
-
descendingIterator
@GwtIncompatible("NavigableSet") public UnmodifiableIterator<E> descendingIterator()
- Specified by:
descendingIteratorin interfacejava.util.NavigableSet<E>- Specified by:
descendingIteratorin classImmutableSortedSet<E>
-
createDescendingSet
@GwtIncompatible("NavigableSet") ImmutableSortedSet<E> createDescendingSet()
- Specified by:
createDescendingSetin classImmutableSortedSet<E>
-
lower
public E lower(E element)
- Specified by:
lowerin interfacejava.util.NavigableSet<E>- Overrides:
lowerin classImmutableSortedSet<E>
-
floor
public E floor(E element)
- Specified by:
floorin interfacejava.util.NavigableSet<E>- Overrides:
floorin classImmutableSortedSet<E>
-
ceiling
public E ceiling(E element)
- Specified by:
ceilingin interfacejava.util.NavigableSet<E>- Overrides:
ceilingin classImmutableSortedSet<E>
-
higher
public E higher(E element)
- Specified by:
higherin interfacejava.util.NavigableSet<E>- Overrides:
higherin classImmutableSortedSet<E>
-
indexOf
int indexOf(java.lang.Object target)
Description copied from class:ImmutableSortedSetReturns the position of an element within the set, or -1 if not present.- Specified by:
indexOfin classImmutableSortedSet<E>
-
isPartialView
boolean isPartialView()
Description copied from class:ImmutableCollectionReturnstrueif 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 whethercopyOfimplementations should make an explicit copy to avoid memory leaks.- Specified by:
isPartialViewin classImmutableCollection<E>
-
-