Class ForwardingNavigableMap.StandardNavigableKeySet
java.lang.Object
java.util.AbstractCollection<K>
java.util.AbstractSet<K>
com.google.common.collect.ForwardingNavigableMap.StandardNavigableKeySet
- All Implemented Interfaces:
Iterable<K>,Collection<K>,NavigableSet<K>,SequencedCollection<K>,SequencedSet<K>,Set<K>,SortedSet<K>
A sensible implementation of
NavigableMap.navigableKeySet() in terms of the methods of
this NavigableMap. In many cases, you may wish to override ForwardingNavigableMap.navigableKeySet() to forward to this implementation or a subclass
thereof.- Since:
- 12.0
- Author:
- Louis Wasserman
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()@Nullable Comparator<? super K> booleanfirst()voidbooleanisEmpty()iterator()last()pollLast()booleanbooleanremoveAll(Collection<?> c) booleanretainAll(Collection<?> c) intsize()Methods inherited from class java.util.AbstractSet
equals, hashCodeMethods inherited from class java.util.AbstractCollection
add, addAll, containsAll, toArray, toArray, toStringMethods 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
iterator, removeFirst, removeLast, reversedMethods inherited from interface java.util.Set
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, remove, removeAll, retainAll, size, toArray, toArrayMethods inherited from interface java.util.SortedSet
addFirst, addLast, comparator, first, getFirst, getLast, last, spliterator
-
Constructor Details
-
StandardNavigableKeySet
public StandardNavigableKeySet()Constructor for use by subclasses.
-
-
Method Details
-
lower
-
floor
-
ceiling
-
higher
-
pollFirst
- Specified by:
pollFirstin interfaceNavigableSet<K extends @Nullable Object>
-
pollLast
- Specified by:
pollLastin interfaceNavigableSet<K extends @Nullable Object>
-
descendingSet
- Specified by:
descendingSetin interfaceNavigableSet<K extends @Nullable Object>
-
descendingIterator
- Specified by:
descendingIteratorin interfaceNavigableSet<K extends @Nullable Object>
-
subSet
public NavigableSet<K> subSet(K fromElement, boolean fromInclusive, K toElement, boolean toInclusive) - Specified by:
subSetin interfaceNavigableSet<K extends @Nullable Object>
-
subSet
-
headSet
- Specified by:
headSetin interfaceNavigableSet<K extends @Nullable Object>
-
headSet
-
tailSet
- Specified by:
tailSetin interfaceNavigableSet<K extends @Nullable Object>
-
tailSet
-
comparator
- Specified by:
comparatorin interfaceSortedSet<K extends @Nullable Object>
-
first
-
last
-
iterator
-
forEach
-
size
-
isEmpty
-
contains
-
remove
-
clear
-
removeAll
-
retainAll
-