Package com.google.common.collect
Class ForwardingNavigableMap.StandardNavigableKeySet
- java.lang.Object
- 
- java.util.AbstractCollection<E>
- 
- java.util.AbstractSet<E>
- 
- com.google.common.collect.ForwardingNavigableMap.StandardNavigableKeySet
 
 
 
- 
- All Implemented Interfaces:
- java.lang.Iterable<K>,- java.util.Collection<K>,- java.util.NavigableSet<K>,- java.util.Set<K>,- java.util.SortedSet<K>
 - Enclosing class:
- ForwardingNavigableMap<K extends @Nullable java.lang.Object,V extends @Nullable java.lang.Object>
 
 protected class ForwardingNavigableMap.StandardNavigableKeySet extends java.util.AbstractSet<E> A sensible implementation ofNavigableMap.navigableKeySet()in terms of the methods of thisNavigableMap. In many cases, you may wish to overrideForwardingNavigableMap.navigableKeySet()to forward to this implementation or a subclass thereof.- Since:
- 12.0
 
- 
- 
Constructor SummaryConstructors Constructor Description StandardNavigableKeySet()Constructor for use by subclasses.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description Kceiling(K e)voidclear()java.util.Comparator<? super K>comparator()booleancontains(java.lang.Object o)java.util.Iterator<K>descendingIterator()java.util.NavigableSet<K>descendingSet()Kfirst()Kfloor(K e)java.util.SortedSet<K>headSet(K toElement)java.util.NavigableSet<K>headSet(K toElement, boolean inclusive)Khigher(K e)booleanisEmpty()java.util.Iterator<K>iterator()Klast()Klower(K e)KpollFirst()KpollLast()booleanremove(java.lang.Object o)booleanremoveAll(java.util.Collection<?> c)booleanretainAll(java.util.Collection<?> c)intsize()java.util.NavigableSet<K>subSet(K fromElement, boolean fromInclusive, K toElement, boolean toInclusive)java.util.SortedSet<K>subSet(K fromElement, K toElement)java.util.SortedSet<K>tailSet(K fromElement)java.util.NavigableSet<K>tailSet(K fromElement, boolean inclusive)- 
Methods inherited from class java.util.AbstractCollectionadd, addAll, containsAll, toArray, toArray, toString
 - 
Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
- 
 
- 
- 
- 
Constructor Detail- 
StandardNavigableKeySetpublic StandardNavigableKeySet() Constructor for use by subclasses.
 
- 
 - 
Method Detail- 
lower@CheckForNull public K lower(K e) - Specified by:
- lowerin interface- java.util.NavigableSet<K extends @Nullable java.lang.Object>
 
 - 
floor@CheckForNull public K floor(K e) - Specified by:
- floorin interface- java.util.NavigableSet<K extends @Nullable java.lang.Object>
 
 - 
ceiling@CheckForNull public K ceiling(K e) - Specified by:
- ceilingin interface- java.util.NavigableSet<K extends @Nullable java.lang.Object>
 
 - 
higher@CheckForNull public K higher(K e) - Specified by:
- higherin interface- java.util.NavigableSet<K extends @Nullable java.lang.Object>
 
 - 
pollFirst@CheckForNull public K pollFirst() - Specified by:
- pollFirstin interface- java.util.NavigableSet<K extends @Nullable java.lang.Object>
 
 - 
pollLast@CheckForNull public K pollLast() - Specified by:
- pollLastin interface- java.util.NavigableSet<K extends @Nullable java.lang.Object>
 
 - 
descendingSetpublic java.util.NavigableSet<K> descendingSet() - Specified by:
- descendingSetin interface- java.util.NavigableSet<K extends @Nullable java.lang.Object>
 
 - 
descendingIteratorpublic java.util.Iterator<K> descendingIterator() - Specified by:
- descendingIteratorin interface- java.util.NavigableSet<K extends @Nullable java.lang.Object>
 
 - 
subSetpublic java.util.NavigableSet<K> subSet(K fromElement, boolean fromInclusive, K toElement, boolean toInclusive)- Specified by:
- subSetin interface- java.util.NavigableSet<K extends @Nullable java.lang.Object>
 
 - 
subSetpublic java.util.SortedSet<K> subSet(K fromElement, K toElement)
 - 
headSetpublic java.util.NavigableSet<K> headSet(K toElement, boolean inclusive)- Specified by:
- headSetin interface- java.util.NavigableSet<K extends @Nullable java.lang.Object>
 
 - 
headSetpublic java.util.SortedSet<K> headSet(K toElement) 
 - 
tailSetpublic java.util.NavigableSet<K> tailSet(K fromElement, boolean inclusive)- Specified by:
- tailSetin interface- java.util.NavigableSet<K extends @Nullable java.lang.Object>
 
 - 
tailSetpublic java.util.SortedSet<K> tailSet(K fromElement) 
 - 
comparator@CheckForNull public java.util.Comparator<? super K> comparator() - Specified by:
- comparatorin interface- java.util.SortedSet<K extends @Nullable java.lang.Object>
 
 - 
firstpublic K first() - Specified by:
- firstin interface- java.util.SortedSet<K extends @Nullable java.lang.Object>
 
 - 
lastpublic K last() - Specified by:
- lastin interface- java.util.SortedSet<K extends @Nullable java.lang.Object>
 
 - 
iteratorpublic java.util.Iterator<K> iterator() - Specified by:
- iteratorin interface- java.util.Collection<K extends @Nullable java.lang.Object>
- Specified by:
- iteratorin interface- java.lang.Iterable<K extends @Nullable java.lang.Object>
- Specified by:
- iteratorin interface- java.util.Set<K extends @Nullable java.lang.Object>
- Specified by:
- iteratorin class- java.util.AbstractCollection<K extends @Nullable java.lang.Object>
 
 - 
sizepublic int size() 
 - 
isEmptypublic boolean isEmpty() 
 - 
containspublic boolean contains(@CheckForNull java.lang.Object o) 
 - 
removepublic boolean remove(@CheckForNull java.lang.Object o) 
 - 
clearpublic void clear() 
 - 
removeAllpublic boolean removeAll(java.util.Collection<?> c) 
 - 
retainAllpublic boolean retainAll(java.util.Collection<?> c) 
 
- 
 
-