Package com.google.common.collect
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>
- Enclosing class:
ForwardingNavigableMap<K,
V>
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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Comparator
<? super K> boolean
first()
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
- Specified by:
lower
in interfaceNavigableSet<K>
-
floor
- Specified by:
floor
in interfaceNavigableSet<K>
-
ceiling
- Specified by:
ceiling
in interfaceNavigableSet<K>
-
higher
- Specified by:
higher
in interfaceNavigableSet<K>
-
pollFirst
- Specified by:
pollFirst
in interfaceNavigableSet<K>
-
pollLast
- Specified by:
pollLast
in interfaceNavigableSet<K>
-
descendingSet
- Specified by:
descendingSet
in interfaceNavigableSet<K>
-
descendingIterator
- Specified by:
descendingIterator
in interfaceNavigableSet<K>
-
subSet
public NavigableSet<K> subSet(K fromElement, boolean fromInclusive, K toElement, boolean toInclusive) - Specified by:
subSet
in interfaceNavigableSet<K>
-
headSet
- Specified by:
headSet
in interfaceNavigableSet<K>
-
tailSet
- Specified by:
tailSet
in interfaceNavigableSet<K>
-
subSet
- Specified by:
subSet
in interfaceNavigableSet<K>
- Specified by:
subSet
in interfaceSortedSet<K>
-
headSet
- Specified by:
headSet
in interfaceNavigableSet<K>
- Specified by:
headSet
in interfaceSortedSet<K>
-
tailSet
- Specified by:
tailSet
in interfaceNavigableSet<K>
- Specified by:
tailSet
in interfaceSortedSet<K>
-
comparator
- Specified by:
comparator
in interfaceSortedSet<K>
-
first
-
last
-
iterator
- Specified by:
iterator
in interfaceCollection<K>
- Specified by:
iterator
in interfaceIterable<K>
- Specified by:
iterator
in interfaceSet<K>
- Specified by:
iterator
in classAbstractCollection<K>
-
size
public int size()- Specified by:
size
in interfaceCollection<K>
- Specified by:
size
in interfaceSet<K>
- Specified by:
size
in classAbstractCollection<K>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceCollection<K>
- Specified by:
isEmpty
in interfaceSet<K>
- Overrides:
isEmpty
in classAbstractCollection<K>
-
contains
- Specified by:
contains
in interfaceCollection<K>
- Specified by:
contains
in interfaceSet<K>
- Overrides:
contains
in classAbstractCollection<K>
-
remove
- Specified by:
remove
in interfaceCollection<K>
- Specified by:
remove
in interfaceSet<K>
- Overrides:
remove
in classAbstractCollection<K>
-
clear
public void clear()- Specified by:
clear
in interfaceCollection<K>
- Specified by:
clear
in interfaceSet<K>
- Overrides:
clear
in classAbstractCollection<K>
-
removeAll
- Specified by:
removeAll
in interfaceCollection<E>
- Specified by:
removeAll
in interfaceSet<E>
- Overrides:
removeAll
in classAbstractSet<E>
-
retainAll
- Specified by:
retainAll
in interfaceCollection<E>
- Specified by:
retainAll
in interfaceSet<E>
- Overrides:
retainAll
in classAbstractCollection<E>
-