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.ImmutableSet.CachingAsList<E>
com.google.common.collect.ImmutableSortedSetFauxverideShim<E>
com.google.common.collect.ImmutableSortedSet<E>
com.google.common.collect.DescendingImmutableSortedSet<E>
- All Implemented Interfaces:
SortedIterable<E>,Serializable,Iterable<E>,Collection<E>,NavigableSet<E>,Set<E>,SortedSet<E>
Skeletal implementation of
ImmutableSortedSet.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.CachingAsList<E>, ImmutableSet.Indexed<E> -
Field Summary
FieldsFields inherited from class com.google.common.collect.ImmutableSortedSet
comparator, descendingSet, SPLITERATOR_CHARACTERISTICSFields inherited from class com.google.common.collect.ImmutableSet
MAX_TABLE_SIZE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean(package private) ImmutableSortedSet<E>(package private) ImmutableSortedSet<E>headSetImpl(E toElement, boolean inclusive) (package private) intReturns the position of an element within the set, or -1 if not present.(package private) booleanReturnstrueif this immutable collection's implementation contains references to user-created objects that aren't accessible via this collection's methods.iterator()Returns an unmodifiable iterator across the elements in this collection.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, writeReplaceMethods inherited from class com.google.common.collect.ImmutableSortedSetFauxverideShim
builder, builderWithExpectedSize, copyOf, of, of, of, of, of, of, toImmutableSetMethods inherited from class com.google.common.collect.ImmutableSet.CachingAsList
asList, createAsListMethods inherited from class com.google.common.collect.ImmutableSet
chooseTableSize, equals, hashCode, isHashCodeFastMethods inherited from class com.google.common.collect.ImmutableCollection
add, addAll, clear, copyIntoArray, internalArray, internalArrayEnd, internalArrayStart, remove, removeAll, removeIf, retainAll, toArray, toArrayMethods inherited from class java.util.AbstractCollection
containsAll, isEmpty, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Field Details
-
forward
-
-
Constructor Details
-
DescendingImmutableSortedSet
DescendingImmutableSortedSet(ImmutableSortedSet<E> forward)
-
-
Method Details
-
contains
- Specified by:
containsin interfaceCollection<E>- Specified by:
containsin interfaceSet<E>- Specified by:
containsin classImmutableCollection<E>
-
size
public int size()- Specified by:
sizein interfaceCollection<E>- Specified by:
sizein interfaceSet<E>- Specified by:
sizein classAbstractCollection<E>
-
iterator
Description copied from class:ImmutableCollectionReturns an unmodifiable iterator across the elements in this collection.- Specified by:
iteratorin interfaceCollection<E>- Specified by:
iteratorin interfaceIterable<E>- Specified by:
iteratorin interfaceNavigableSet<E>- Specified by:
iteratorin interfaceSet<E>- Specified by:
iteratorin interfaceSortedIterable<E>- Specified by:
iteratorin classImmutableSortedSet<E>
-
headSetImpl
- Specified by:
headSetImplin classImmutableSortedSet<E>
-
subSetImpl
ImmutableSortedSet<E> subSetImpl(E fromElement, boolean fromInclusive, E toElement, boolean toInclusive) - Specified by:
subSetImplin classImmutableSortedSet<E>
-
tailSetImpl
- Specified by:
tailSetImplin classImmutableSortedSet<E>
-
descendingSet
- Specified by:
descendingSetin interfaceNavigableSet<E>- Overrides:
descendingSetin classImmutableSortedSet<E>
-
descendingIterator
- Specified by:
descendingIteratorin interfaceNavigableSet<E>- Specified by:
descendingIteratorin classImmutableSortedSet<E>
-
createDescendingSet
ImmutableSortedSet<E> createDescendingSet()- Specified by:
createDescendingSetin classImmutableSortedSet<E>
-
lower
- Specified by:
lowerin interfaceNavigableSet<E>- Overrides:
lowerin classImmutableSortedSet<E>
-
floor
- Specified by:
floorin interfaceNavigableSet<E>- Overrides:
floorin classImmutableSortedSet<E>
-
ceiling
- Specified by:
ceilingin interfaceNavigableSet<E>- Overrides:
ceilingin classImmutableSortedSet<E>
-
higher
- Specified by:
higherin interfaceNavigableSet<E>- Overrides:
higherin classImmutableSortedSet<E>
-
indexOf
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>
-