Module com.google.common
Package com.google.common.collect
Class ForwardingNavigableSet.StandardDescendingSet
java.lang.Object
com.google.common.collect.ForwardingObject
com.google.common.collect.ForwardingCollection<E>
com.google.common.collect.ForwardingSet<E>
com.google.common.collect.ForwardingSortedSet<E>
com.google.common.collect.ForwardingNavigableSet<E>
com.google.common.collect.ForwardingNavigableSet.StandardDescendingSet
- All Implemented Interfaces:
Iterable<E>,Collection<E>,NavigableSet<E>,Set<E>,SortedSet<E>
- Enclosing class:
- ForwardingNavigableSet<E>
@Beta
protected class ForwardingNavigableSet.StandardDescendingSet
extends ForwardingNavigableSet<E>
A sensible implementation of
NavigableSet.descendingSet() in terms of the other methods
of NavigableSet, notably including NavigableSet.descendingIterator().
In many cases, you may wish to override ForwardingNavigableSet.descendingSet() to
forward to this implementation or a subclass thereof.
- Since:
- 12.0
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.common.collect.ForwardingNavigableSet
ForwardingNavigableSet.StandardDescendingSet -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionComparator<? super E>protected NavigableSet<E>delegate()Returns the backing delegate instance that methods are forwarded to.first()iterator()last()pollLast()Object[]toArray()<T> T[]toArray(T[] array) toString()Returns the string representation generated by the delegate'stoStringmethod.Methods inherited from class com.google.common.collect.ForwardingNavigableSet
standardCeiling, standardFirst, standardFloor, standardHeadSet, standardHigher, standardLast, standardLower, standardPollFirst, standardPollLast, standardSubSet, standardSubSet, standardTailSetMethods inherited from class com.google.common.collect.ForwardingSortedSet
standardContains, standardRemoveMethods inherited from class com.google.common.collect.ForwardingSet
equals, hashCode, standardEquals, standardHashCode, standardRemoveAllMethods inherited from class com.google.common.collect.ForwardingCollection
add, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, size, standardAddAll, standardClear, standardContainsAll, standardIsEmpty, standardRetainAll, standardToArray, standardToArray, standardToStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.Set
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, remove, removeAll, retainAll, sizeMethods inherited from interface java.util.SortedSet
spliterator
-
Constructor Details
-
StandardDescendingSet
public StandardDescendingSet()Constructor for use by subclasses.
-
-
Method Details
-
delegate
Description copied from class:ForwardingObjectReturns the backing delegate instance that methods are forwarded to. Abstract subclasses generally override this method with an abstract method that has a more specific return type, such asForwardingSet.delegate(). Concrete subclasses override this method to supply the instance being decorated.- Specified by:
delegatein classForwardingNavigableSet<E>
-
lower
- Specified by:
lowerin interfaceNavigableSet<E>- Overrides:
lowerin classForwardingNavigableSet<E>
-
floor
- Specified by:
floorin interfaceNavigableSet<E>- Overrides:
floorin classForwardingNavigableSet<E>
-
ceiling
- Specified by:
ceilingin interfaceNavigableSet<E>- Overrides:
ceilingin classForwardingNavigableSet<E>
-
higher
- Specified by:
higherin interfaceNavigableSet<E>- Overrides:
higherin classForwardingNavigableSet<E>
-
pollFirst
- Specified by:
pollFirstin interfaceNavigableSet<E>- Overrides:
pollFirstin classForwardingNavigableSet<E>
-
pollLast
- Specified by:
pollLastin interfaceNavigableSet<E>- Overrides:
pollLastin classForwardingNavigableSet<E>
-
descendingSet
- Specified by:
descendingSetin interfaceNavigableSet<E>- Overrides:
descendingSetin classForwardingNavigableSet<E>
-
descendingIterator
- Specified by:
descendingIteratorin interfaceNavigableSet<E>- Overrides:
descendingIteratorin classForwardingNavigableSet<E>
-
subSet
public NavigableSet<E> subSet(E fromElement, boolean fromInclusive, E toElement, boolean toInclusive) - Specified by:
subSetin interfaceNavigableSet<E>- Overrides:
subSetin classForwardingNavigableSet<E>
-
subSet
- Specified by:
subSetin interfaceNavigableSet<E>- Specified by:
subSetin interfaceSortedSet<E>- Overrides:
subSetin classForwardingSortedSet<E>
-
headSet
- Specified by:
headSetin interfaceNavigableSet<E>- Overrides:
headSetin classForwardingNavigableSet<E>
-
headSet
- Specified by:
headSetin interfaceNavigableSet<E>- Specified by:
headSetin interfaceSortedSet<E>- Overrides:
headSetin classForwardingSortedSet<E>
-
tailSet
- Specified by:
tailSetin interfaceNavigableSet<E>- Overrides:
tailSetin classForwardingNavigableSet<E>
-
tailSet
- Specified by:
tailSetin interfaceNavigableSet<E>- Specified by:
tailSetin interfaceSortedSet<E>- Overrides:
tailSetin classForwardingSortedSet<E>
-
comparator
- Specified by:
comparatorin interfaceSortedSet<E>- Overrides:
comparatorin classForwardingSortedSet<E>
-
first
- Specified by:
firstin interfaceSortedSet<E>- Overrides:
firstin classForwardingSortedSet<E>
-
last
- Specified by:
lastin interfaceSortedSet<E>- Overrides:
lastin classForwardingSortedSet<E>
-
iterator
- Specified by:
iteratorin interfaceCollection<E>- Specified by:
iteratorin interfaceIterable<E>- Specified by:
iteratorin interfaceNavigableSet<E>- Specified by:
iteratorin interfaceSet<E>- Overrides:
iteratorin classForwardingCollection<E>
-
toArray
- Specified by:
toArrayin interfaceCollection<E>- Specified by:
toArrayin interfaceSet<E>- Overrides:
toArrayin classForwardingCollection<E>
-
toArray
public <T> T[] toArray(T[] array) - Specified by:
toArrayin interfaceCollection<E>- Specified by:
toArrayin interfaceSet<E>- Overrides:
toArrayin classForwardingCollection<E>
-
toString
Description copied from class:ForwardingObjectReturns the string representation generated by the delegate'stoStringmethod.- Overrides:
toStringin classForwardingObject
-