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 TypeMethodDescriptionvoidclear()Comparator<? super K> booleanfirst()booleanisEmpty()iterator()last()pollLast()booleanbooleanremoveAll(Collection<?> c) booleanretainAll(Collection<?> c) intsize()Methods inherited from class AbstractSet
equals, hashCodeMethods inherited from class AbstractCollection
add, addAll, containsAll, toArray, toArray, toStringMethods inherited from interface Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface NavigableSet
iterator, removeFirst, removeLast, reversedMethods inherited from interface Set
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, remove, removeAll, retainAll, size, toArray, toArrayMethods inherited from interface SortedSet
addFirst, addLast, comparator, first, getFirst, getLast, last, spliterator
-
Constructor Details
-
StandardNavigableKeySet
public StandardNavigableKeySet()Constructor for use by subclasses.
-
-
Method Details
-
lower
- Specified by:
lowerin interfaceNavigableSet<K>
-
floor
- Specified by:
floorin interfaceNavigableSet<K>
-
ceiling
- Specified by:
ceilingin interfaceNavigableSet<K>
-
higher
- Specified by:
higherin interfaceNavigableSet<K>
-
pollFirst
- Specified by:
pollFirstin interfaceNavigableSet<K>
-
pollLast
- Specified by:
pollLastin interfaceNavigableSet<K>
-
descendingSet
- Specified by:
descendingSetin interfaceNavigableSet<K>
-
descendingIterator
- Specified by:
descendingIteratorin interfaceNavigableSet<K>
-
subSet
public NavigableSet<K> subSet(K fromElement, boolean fromInclusive, K toElement, boolean toInclusive) - Specified by:
subSetin interfaceNavigableSet<K>
-
headSet
- Specified by:
headSetin interfaceNavigableSet<K>
-
tailSet
- Specified by:
tailSetin interfaceNavigableSet<K>
-
subSet
-
headSet
-
tailSet
-
comparator
- Specified by:
comparatorin interfaceSortedSet<K>
-
first
-
last
-
iterator
- Specified by:
iteratorin interfaceCollection<K>- Specified by:
iteratorin interfaceIterable<K>- Specified by:
iteratorin interfaceSet<K>- Specified by:
iteratorin classAbstractCollection<K>
-
size
public int size()- Specified by:
sizein interfaceCollection<K>- Specified by:
sizein interfaceSet<K>- Specified by:
sizein classAbstractCollection<K>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection<K>- Specified by:
isEmptyin interfaceSet<K>- Overrides:
isEmptyin classAbstractCollection<K>
-
contains
- Specified by:
containsin interfaceCollection<K>- Specified by:
containsin interfaceSet<K>- Overrides:
containsin classAbstractCollection<K>
-
remove
- Specified by:
removein interfaceCollection<K>- Specified by:
removein interfaceSet<K>- Overrides:
removein classAbstractCollection<K>
-
clear
public void clear()- Specified by:
clearin interfaceCollection<K>- Specified by:
clearin interfaceSet<K>- Overrides:
clearin classAbstractCollection<K>
-
removeAll
- Specified by:
removeAllin interfaceCollection<E>- Specified by:
removeAllin interfaceSet<E>- Overrides:
removeAllin classAbstractSet<E>
-
retainAll
- Specified by:
retainAllin interfaceCollection<E>- Specified by:
retainAllin interfaceSet<E>- Overrides:
retainAllin classAbstractCollection<E>
-