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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
@Nullable Comparator
<? super K> boolean
first()
void
boolean
isEmpty()
iterator()
last()
pollLast()
boolean
boolean
removeAll
(Collection<?> c) boolean
retainAll
(Collection<?> c) int
size()
Methods inherited from class java.util.AbstractSet
equals, hashCode
Methods inherited from class java.util.AbstractCollection
add, addAll, containsAll, toArray, toArray, 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
iterator, removeFirst, removeLast, reversed
Methods inherited from interface java.util.Set
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, remove, removeAll, retainAll, size, toArray, toArray
Methods 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:
pollFirst
in interfaceNavigableSet<K extends @Nullable Object>
-
pollLast
- Specified by:
pollLast
in interfaceNavigableSet<K extends @Nullable Object>
-
descendingSet
- Specified by:
descendingSet
in interfaceNavigableSet<K extends @Nullable Object>
-
descendingIterator
- Specified by:
descendingIterator
in interfaceNavigableSet<K extends @Nullable Object>
-
subSet
public NavigableSet<K> subSet(K fromElement, boolean fromInclusive, K toElement, boolean toInclusive) - Specified by:
subSet
in interfaceNavigableSet<K extends @Nullable Object>
-
subSet
-
headSet
- Specified by:
headSet
in interfaceNavigableSet<K extends @Nullable Object>
-
headSet
-
tailSet
- Specified by:
tailSet
in interfaceNavigableSet<K extends @Nullable Object>
-
tailSet
-
comparator
- Specified by:
comparator
in interfaceSortedSet<K extends @Nullable Object>
-
first
-
last
-
iterator
-
forEach
-
size
-
isEmpty
-
contains
-
remove
-
clear
-
removeAll
-
retainAll
-