Package com.google.common.collect
Class Sets.DescendingSet<E>
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.Sets.DescendingSet<E>
- All Implemented Interfaces:
Iterable<E>,Collection<E>,NavigableSet<E>,SequencedCollection<E>,SequencedSet<E>,Set<E>,SortedSet<E>
- Direct Known Subclasses:
ForwardingNavigableSet.StandardDescendingSet
- Enclosing class:
Sets
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.common.collect.ForwardingNavigableSet
ForwardingNavigableSet.StandardDescendingSet -
Field Summary
Fields -
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()private static <T> Ordering<T> reverse(Comparator<T> forward) 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.NavigableSet
removeFirst, removeLast, reversed
-
Field Details
-
forward
-
-
Constructor Details
-
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>
-
reverse
-
first
-
last
-
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
-