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.ImmutableSortedSet<E>
com.google.common.collect.DescendingImmutableSortedSet<E>
- All Implemented Interfaces:
SortedIterable<E>
,Serializable
,Iterable<E>
,Collection<E>
,NavigableSet<E>
,SequencedCollection<E>
,SequencedSet<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_CHARACTERISTICS
Fields 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) int
Returns the position of an element within the set, or -1 if not present.(package private) boolean
Returnstrue
if 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.int
size()
(package private) ImmutableSortedSet
<E> subSetImpl
(E fromElement, boolean fromInclusive, E toElement, boolean toInclusive) (package private) ImmutableSortedSet
<E> tailSetImpl
(E fromElement, boolean inclusive) (package private) Object
Methods inherited from class com.google.common.collect.ImmutableSortedSet
builder, builderWithExpectedSize, comparator, construct, copyOf, 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, toImmutableSet, toImmutableSortedSet, unsafeCompare, unsafeCompare
Methods inherited from class com.google.common.collect.ImmutableSet.CachingAsList
asList, createAsList
Methods inherited from class com.google.common.collect.ImmutableSet
chooseTableSize, equals, hashCode, isHashCodeFast
Methods inherited from class com.google.common.collect.ImmutableCollection
add, addAll, clear, copyIntoArray, internalArray, internalArrayEnd, internalArrayStart, remove, removeAll, removeIf, retainAll, toArray, toArray
Methods inherited from class java.util.AbstractCollection
containsAll, isEmpty, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface java.util.NavigableSet
removeFirst, removeLast, reversed
-
Field Details
-
forward
-
-
Constructor Details
-
DescendingImmutableSortedSet
DescendingImmutableSortedSet(ImmutableSortedSet<E> forward)
-
-
Method Details
-
contains
- Specified by:
contains
in interfaceCollection<E>
- Specified by:
contains
in interfaceSet<E>
- Specified by:
contains
in classImmutableCollection<E>
-
size
public int size()- Specified by:
size
in interfaceCollection<E>
- Specified by:
size
in interfaceSet<E>
- Specified by:
size
in classAbstractCollection<E>
-
iterator
Description copied from class:ImmutableCollection
Returns an unmodifiable iterator across the elements in this collection.- Specified by:
iterator
in interfaceCollection<E>
- Specified by:
iterator
in interfaceIterable<E>
- Specified by:
iterator
in interfaceNavigableSet<E>
- Specified by:
iterator
in interfaceSet<E>
- Specified by:
iterator
in interfaceSortedIterable<E>
- Specified by:
iterator
in classImmutableSortedSet<E>
-
headSetImpl
- Specified by:
headSetImpl
in classImmutableSortedSet<E>
-
subSetImpl
ImmutableSortedSet<E> subSetImpl(E fromElement, boolean fromInclusive, E toElement, boolean toInclusive) - Specified by:
subSetImpl
in classImmutableSortedSet<E>
-
tailSetImpl
- Specified by:
tailSetImpl
in classImmutableSortedSet<E>
-
descendingSet
- Specified by:
descendingSet
in interfaceNavigableSet<E>
- Overrides:
descendingSet
in classImmutableSortedSet<E>
-
descendingIterator
- Specified by:
descendingIterator
in interfaceNavigableSet<E>
- Specified by:
descendingIterator
in classImmutableSortedSet<E>
-
createDescendingSet
ImmutableSortedSet<E> createDescendingSet()- Specified by:
createDescendingSet
in classImmutableSortedSet<E>
-
lower
- Specified by:
lower
in interfaceNavigableSet<E>
- Overrides:
lower
in classImmutableSortedSet<E>
-
floor
- Specified by:
floor
in interfaceNavigableSet<E>
- Overrides:
floor
in classImmutableSortedSet<E>
-
ceiling
- Specified by:
ceiling
in interfaceNavigableSet<E>
- Overrides:
ceiling
in classImmutableSortedSet<E>
-
higher
- Specified by:
higher
in interfaceNavigableSet<E>
- Overrides:
higher
in classImmutableSortedSet<E>
-
indexOf
Description copied from class:ImmutableSortedSet
Returns the position of an element within the set, or -1 if not present.- Specified by:
indexOf
in classImmutableSortedSet<E>
-
isPartialView
boolean isPartialView()Description copied from class:ImmutableCollection
Returnstrue
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 whethercopyOf
implementations should make an explicit copy to avoid memory leaks.- Specified by:
isPartialView
in classImmutableCollection<E>
-
writeReplace
Object writeReplace()- Overrides:
writeReplace
in classImmutableSortedSet<E>
-