Top Description Inners Constructors Methods
com.google.common.collect

public abstract Class ForwardingNavigableMap<K extends @Nullable Object, V extends @Nullable Object>

extends ForwardingSortedMap<K extends @Nullable Object, V extends @Nullable Object>
implements NavigableMap<K extends @Nullable Object, V extends @Nullable Object>
Class Inheritance
All Implemented Interfaces
java.util.NavigableMap, java.util.SortedMap, java.util.SequencedMap, java.util.Map
Annotations
@GwtIncompatible
@ElementTypesAreNonnullByDefault
Static Imports
com.google.common.collect.Maps.keyOrNull

A navigable map which forwards all its method calls to another navigable map. Subclasses should override one or more methods to modify the behavior of the backing map as desired per the decorator pattern.

Warning

The methods of ForwardingNavigableMap forward indiscriminately to the methods of the delegate. For example, overriding put alone will not change the behavior of putAll, which can lead to unexpected behavior. In this case, you should override putAll as well, either providing your own implementation, or delegating to the provided standardPutAll method.

default method warning: This class does not forward calls to default methods. Instead, it inherits their default implementations. When those implementations invoke methods, they invoke methods on the ForwardingNavigableMap.

Each of the standard methods uses the map's comparator (or the natural ordering of the elements, if there is no comparator) to test element equality. As a result, if the comparator is not consistent with equals, some of the standard implementations may violate the Map contract.

The standard methods and the collection views they return are not guaranteed to be thread-safe, even when all of the methods that they depend on are thread-safe.

Author
Louis Wasserman
Since
12.0

Nested and Inner Type Summary

Modifier and TypeClass and Description
protected class
ForwardingNavigableMap.StandardDescendingMap

A sensible implementation of NavigableMap#descendingMap in terms of the methods of this NavigableMap.

protected class
ForwardingNavigableMap.StandardNavigableKeySet

A sensible implementation of NavigableMap#navigableKeySet in terms of the methods of this NavigableMap.

Constructor Summary

AccessConstructor and Description
protected
ForwardingNavigableMap()

Constructor for use by subclasses.

Method Summary

Modifier and TypeMethod and Description
public Map.Entry<K, V>
ceilingEntry(K
the key
key
)

Implements java.util.NavigableMap.ceilingEntry.

Returns a key-value mapping associated with the least key greater than or equal to the given key, or null if there is no such key.
public K
ceilingKey(K
the key
key
)

Implements java.util.NavigableMap.ceilingKey.

Returns the least key greater than or equal to the given key, or null if there is no such key.
protected abstract NavigableMap<K, V>
delegate()

Implements abstract com.google.common.collect.ForwardingSortedMap.delegate.

Returns the backing delegate instance that methods are forwarded to.
public NavigableSet<K>
descendingKeySet()

Implements java.util.NavigableMap.descendingKeySet.

Returns a reverse order NavigableSet view of the keys contained in this map.
public NavigableMap<K, V>
descendingMap()

Implements java.util.NavigableMap.descendingMap.

Returns a reverse order view of the mappings contained in this map.
public Map.Entry<K, V>
firstEntry()

Overrides default java.util.SequencedMap.firstEntry.

Implements java.util.NavigableMap.firstEntry.

Returns a key-value mapping associated with the least key in this map, or null if the map is empty.
public Map.Entry<K, V>
floorEntry(K
the key
key
)

Implements java.util.NavigableMap.floorEntry.

Returns a key-value mapping associated with the greatest key less than or equal to the given key, or null if there is no such key.
public K
floorKey(K
the key
key
)

Implements java.util.NavigableMap.floorKey.

Returns the greatest key less than or equal to the given key, or null if there is no such key.
public NavigableMap<K, V>
headMap(K
high endpoint of the keys in the returned map
toKey
,
boolean
true if the high endpoint is to be included in the returned view
inclusive
)

Implements java.util.NavigableMap.headMap.

Returns a view of the portion of this map whose keys are less than (or equal to, if inclusive is true) toKey.
public Map.Entry<K, V>
higherEntry(K
the key
key
)

Implements java.util.NavigableMap.higherEntry.

Returns a key-value mapping associated with the least key strictly greater than the given key, or null if there is no such key.
public K
higherKey(K
the key
key
)

Implements java.util.NavigableMap.higherKey.

Returns the least key strictly greater than the given key, or null if there is no such key.
public Map.Entry<K, V>
lastEntry()

Overrides default java.util.SequencedMap.lastEntry.

Implements java.util.NavigableMap.lastEntry.

Returns a key-value mapping associated with the greatest key in this map, or null if the map is empty.
public Map.Entry<K, V>
lowerEntry(K
the key
key
)

Implements java.util.NavigableMap.lowerEntry.

Returns a key-value mapping associated with the greatest key strictly less than the given key, or null if there is no such key.
public K
lowerKey(K
the key
key
)

Implements java.util.NavigableMap.lowerKey.

Returns the greatest key strictly less than the given key, or null if there is no such key.
public Map.Entry<K, V>
pollFirstEntry()

Overrides default java.util.SequencedMap.pollFirstEntry.

Implements java.util.NavigableMap.pollFirstEntry.

Removes and returns a key-value mapping associated with the least key in this map, or null if the map is empty.
public Map.Entry<K, V>
pollLastEntry()

Overrides default java.util.SequencedMap.pollLastEntry.

Implements java.util.NavigableMap.pollLastEntry.

Removes and returns a key-value mapping associated with the greatest key in this map, or null if the map is empty.
protected Map.Entry<K, V>
standardCeilingEntry(K key)

A sensible definition of ceilingEntry in terms of the firstEntry() of tailMap(Object, boolean).

protected K
standardCeilingKey(K key)

A sensible definition of ceilingKey in terms of ceilingEntry.

protected NavigableSet<K>
standardDescendingKeySet()

A sensible definition of descendingKeySet as the navigableKeySet of descendingMap.

protected Map.Entry<K, V>
standardFirstEntry()

A sensible definition of firstEntry in terms of the iterator() of entrySet.

protected K
standardFirstKey()

A sensible definition of firstKey in terms of firstEntry.

protected Map.Entry<K, V>
standardFloorEntry(K key)

A sensible definition of floorEntry in terms of the lastEntry() of headMap(Object, boolean).

protected K
standardFloorKey(K key)

A sensible definition of floorKey in terms of floorEntry.

protected SortedMap<K, V>
standardHeadMap(K toKey)

A sensible definition of headMap(Object) in terms of headMap(Object, boolean).

protected Map.Entry<K, V>
standardHigherEntry(K key)

A sensible definition of higherEntry in terms of the firstEntry() of tailMap(Object, boolean).

protected K
standardHigherKey(K key)

A sensible definition of higherKey in terms of higherEntry.

protected Map.Entry<K, V>
standardLastEntry()

A sensible definition of lastEntry in terms of the iterator() of the entrySet of descendingMap.

protected K
standardLastKey()

A sensible definition of lastKey in terms of lastEntry.

protected Map.Entry<K, V>
standardLowerEntry(K key)

A sensible definition of lowerEntry in terms of the lastEntry() of headMap(Object, boolean).

protected K
standardLowerKey(K key)

A sensible definition of lowerKey in terms of lowerEntry.

protected Map.Entry<K, V>
standardPollFirstEntry()

A sensible definition of pollFirstEntry in terms of the iterator of entrySet.

protected Map.Entry<K, V>
standardPollLastEntry()

A sensible definition of pollFirstEntry in terms of the iterator of the entrySet of descendingMap.

protected SortedMap<K, V>
protected SortedMap<K, V>
standardTailMap(K fromKey)

A sensible definition of tailMap(Object) in terms of tailMap(Object, boolean).

public NavigableMap<K, V>
subMap(K
low endpoint of the keys in the returned map
fromKey
,
boolean
true if the low endpoint is to be included in the returned view
fromInclusive
,
K
high endpoint of the keys in the returned map
toKey
,
boolean
true if the high endpoint is to be included in the returned view
toInclusive
)

Implements java.util.NavigableMap.subMap.

Returns a view of the portion of this map whose keys range from fromKey to toKey.
public NavigableMap<K, V>
tailMap(K
low endpoint of the keys in the returned map
fromKey
,
boolean
true if the low endpoint is to be included in the returned view
inclusive
)

Implements java.util.NavigableMap.tailMap.

Returns a view of the portion of this map whose keys are greater than (or equal to, if inclusive is true) fromKey.
Inherited from com.google.common.collect.ForwardingSortedMap:
comparatorfirstKeyheadMaplastKeystandardContainsKeysubMaptailMapunsafeCompare

Constructor Detail

ForwardingNavigableMapback to summary
protected ForwardingNavigableMap()

Constructor for use by subclasses.

Method Detail

ceilingEntryback to summary
public Map.Entry<K, V> ceilingEntry(K key)

Implements java.util.NavigableMap.ceilingEntry.

Doc from java.util.NavigableMap.ceilingEntry.

Returns a key-value mapping associated with the least key greater than or equal to the given key, or null if there is no such key.

Parameters
key:K

the key

Returns:Map.Entry<K, V>

an entry with the least key greater than or equal to key, or null if there is no such key

Annotations
@Override
@CheckForNull
ceilingKeyback to summary
public K ceilingKey(K key)

Implements java.util.NavigableMap.ceilingKey.

Doc from java.util.NavigableMap.ceilingKey.

Returns the least key greater than or equal to the given key, or null if there is no such key.

Parameters
key:K

the key

Returns:K

the least key greater than or equal to key, or null if there is no such key

Annotations
@Override
@CheckForNull
delegateback to summary
protected abstract NavigableMap<K, V> delegate()

Implements abstract com.google.common.collect.ForwardingSortedMap.delegate.

Doc from com.google.common.collect.ForwardingObject.delegate.

Returns the backing delegate instance that methods are forwarded to. Abstract subclasses generally override this method with an abstract method that has a more specific return type, such as ForwardingSet#delegate. Concrete subclasses override this method to supply the instance being decorated.

Annotations
@Override
descendingKeySetback to summary
public NavigableSet<K> descendingKeySet()

Implements java.util.NavigableMap.descendingKeySet.

Doc from java.util.NavigableMap.descendingKeySet.

Returns a reverse order NavigableSet view of the keys contained in this map. The set's iterator returns the keys in descending order. The set is backed by the map, so changes to the map are reflected in the set, and vice-versa. If the map is modified while an iteration over the set is in progress (except through the iterator's own remove operation), the results of the iteration are undefined. The set supports element removal, which removes the corresponding mapping from the map, via the Iterator.remove, Set.remove, removeAll, retainAll, and clear operations. It does not support the add or addAll operations.

Returns:NavigableSet<K>

a reverse order navigable set view of the keys in this map

Annotations
@Override
descendingMapback to summary
public NavigableMap<K, V> descendingMap()

Implements java.util.NavigableMap.descendingMap.

Doc from java.util.NavigableMap.descendingMap.

Returns a reverse order view of the mappings contained in this map. The descending map is backed by this map, so changes to the map are reflected in the descending map, and vice-versa. If either map is modified while an iteration over a collection view of either map is in progress (except through the iterator's own remove operation), the results of the iteration are undefined.

The returned map has an ordering equivalent to Collections.reverseOrder(comparator()). The expression m.descendingMap().descendingMap() returns a view of m essentially equivalent to m.

Returns:NavigableMap<K, V>

a reverse order view of this map

Annotations
@Override
firstEntryback to summary
public Map.Entry<K, V> firstEntry()

Overrides default java.util.SequencedMap.firstEntry.

Implements java.util.NavigableMap.firstEntry.

Doc from java.util.NavigableMap.firstEntry.

Returns a key-value mapping associated with the least key in this map, or null if the map is empty.

Returns:Map.Entry<K, V>

an entry with the least key, or null if this map is empty

Annotations
@Override
@CheckForNull
floorEntryback to summary
public Map.Entry<K, V> floorEntry(K key)

Implements java.util.NavigableMap.floorEntry.

Doc from java.util.NavigableMap.floorEntry.

Returns a key-value mapping associated with the greatest key less than or equal to the given key, or null if there is no such key.

Parameters
key:K

the key

Returns:Map.Entry<K, V>

an entry with the greatest key less than or equal to key, or null if there is no such key

Annotations
@Override
@CheckForNull
floorKeyback to summary
public K floorKey(K key)

Implements java.util.NavigableMap.floorKey.

Doc from java.util.NavigableMap.floorKey.

Returns the greatest key less than or equal to the given key, or null if there is no such key.

Parameters
key:K

the key

Returns:K

the greatest key less than or equal to key, or null if there is no such key

Annotations
@Override
@CheckForNull
headMapback to summary
public NavigableMap<K, V> headMap(K toKey, boolean inclusive)

Implements java.util.NavigableMap.headMap.

Doc from java.util.NavigableMap.headMap.

Returns a view of the portion of this map whose keys are less than (or equal to, if inclusive is true) toKey. The returned map is backed by this map, so changes in the returned map are reflected in this map, and vice-versa. The returned map supports all optional map operations that this map supports.

The returned map will throw an IllegalArgumentException on an attempt to insert a key outside its range.

Parameters
toKey:K

high endpoint of the keys in the returned map

inclusive:boolean

true if the high endpoint is to be included in the returned view

Returns:NavigableMap<K, V>

a view of the portion of this map whose keys are less than (or equal to, if inclusive is true) toKey

Annotations
@Override
higherEntryback to summary
public Map.Entry<K, V> higherEntry(K key)

Implements java.util.NavigableMap.higherEntry.

Doc from java.util.NavigableMap.higherEntry.

Returns a key-value mapping associated with the least key strictly greater than the given key, or null if there is no such key.

Parameters
key:K

the key

Returns:Map.Entry<K, V>

an entry with the least key greater than key, or null if there is no such key

Annotations
@Override
@CheckForNull
higherKeyback to summary
public K higherKey(K key)

Implements java.util.NavigableMap.higherKey.

Doc from java.util.NavigableMap.higherKey.

Returns the least key strictly greater than the given key, or null if there is no such key.

Parameters
key:K

the key

Returns:K

the least key greater than key, or null if there is no such key

Annotations
@Override
@CheckForNull
lastEntryback to summary
public Map.Entry<K, V> lastEntry()

Overrides default java.util.SequencedMap.lastEntry.

Implements java.util.NavigableMap.lastEntry.

Doc from java.util.NavigableMap.lastEntry.

Returns a key-value mapping associated with the greatest key in this map, or null if the map is empty.

Returns:Map.Entry<K, V>

an entry with the greatest key, or null if this map is empty

Annotations
@Override
@CheckForNull
lowerEntryback to summary
public Map.Entry<K, V> lowerEntry(K key)

Implements java.util.NavigableMap.lowerEntry.

Doc from java.util.NavigableMap.lowerEntry.

Returns a key-value mapping associated with the greatest key strictly less than the given key, or null if there is no such key.

Parameters
key:K

the key

Returns:Map.Entry<K, V>

an entry with the greatest key less than key, or null if there is no such key

Annotations
@Override
@CheckForNull
lowerKeyback to summary
public K lowerKey(K key)

Implements java.util.NavigableMap.lowerKey.

Doc from java.util.NavigableMap.lowerKey.

Returns the greatest key strictly less than the given key, or null if there is no such key.

Parameters
key:K

the key

Returns:K

the greatest key less than key, or null if there is no such key

Annotations
@Override
@CheckForNull
pollFirstEntryback to summary
public Map.Entry<K, V> pollFirstEntry()

Overrides default java.util.SequencedMap.pollFirstEntry.

Implements java.util.NavigableMap.pollFirstEntry.

Doc from java.util.NavigableMap.pollFirstEntry.

Removes and returns a key-value mapping associated with the least key in this map, or null if the map is empty.

Returns:Map.Entry<K, V>

the removed first entry of this map, or null if this map is empty

Annotations
@Override
@CheckForNull
pollLastEntryback to summary
public Map.Entry<K, V> pollLastEntry()

Overrides default java.util.SequencedMap.pollLastEntry.

Implements java.util.NavigableMap.pollLastEntry.

Doc from java.util.NavigableMap.pollLastEntry.

Removes and returns a key-value mapping associated with the greatest key in this map, or null if the map is empty.

Returns:Map.Entry<K, V>

the removed last entry of this map, or null if this map is empty

Annotations
@Override
@CheckForNull
standardCeilingEntryback to summary
protected Map.Entry<K, V> standardCeilingEntry(K key)

A sensible definition of ceilingEntry in terms of the firstEntry() of tailMap(Object, boolean). If you override tailMap, you may wish to override ceilingEntry to forward to this implementation.

Annotations
@CheckForNull
standardCeilingKeyback to summary
protected K standardCeilingKey(K key)

A sensible definition of ceilingKey in terms of ceilingEntry. If you override ceilingEntry, you may wish to override ceilingKey to forward to this implementation.

Annotations
@CheckForNull
standardDescendingKeySetback to summary
protected NavigableSet<K> standardDescendingKeySet()

A sensible definition of descendingKeySet as the navigableKeySet of descendingMap. (The StandardDescendingMap implementation implements navigableKeySet on its own, so as not to cause an infinite loop.) If you override descendingMap, you may wish to override descendingKeySet to forward to this implementation.

standardFirstEntryback to summary
protected Map.Entry<K, V> standardFirstEntry()

A sensible definition of firstEntry in terms of the iterator() of entrySet. If you override entrySet, you may wish to override firstEntry to forward to this implementation.

Annotations
@CheckForNull
standardFirstKeyback to summary
protected K standardFirstKey()

A sensible definition of firstKey in terms of firstEntry. If you override firstEntry, you may wish to override firstKey to forward to this implementation.

standardFloorEntryback to summary
protected Map.Entry<K, V> standardFloorEntry(K key)

A sensible definition of floorEntry in terms of the lastEntry() of headMap(Object, boolean). If you override headMap, you may wish to override floorEntry to forward to this implementation.

Annotations
@CheckForNull
standardFloorKeyback to summary
protected K standardFloorKey(K key)

A sensible definition of floorKey in terms of floorEntry. If you override floorEntry, you may wish to override floorKey to forward to this implementation.

Annotations
@CheckForNull
standardHeadMapback to summary
protected SortedMap<K, V> standardHeadMap(K toKey)

A sensible definition of headMap(Object) in terms of headMap(Object, boolean). If you override headMap(K, boolean), you may wish to override headMap to forward to this implementation.

standardHigherEntryback to summary
protected Map.Entry<K, V> standardHigherEntry(K key)

A sensible definition of higherEntry in terms of the firstEntry() of tailMap(Object, boolean). If you override tailMap, you may wish to override higherEntry to forward to this implementation.

Annotations
@CheckForNull
standardHigherKeyback to summary
protected K standardHigherKey(K key)

A sensible definition of higherKey in terms of higherEntry. If you override higherEntry, you may wish to override higherKey to forward to this implementation.

Annotations
@CheckForNull
standardLastEntryback to summary
protected Map.Entry<K, V> standardLastEntry()

A sensible definition of lastEntry in terms of the iterator() of the entrySet of descendingMap. If you override descendingMap, you may wish to override lastEntry to forward to this implementation.

Annotations
@CheckForNull
standardLastKeyback to summary
protected K standardLastKey()

A sensible definition of lastKey in terms of lastEntry. If you override lastEntry, you may wish to override lastKey to forward to this implementation.

standardLowerEntryback to summary
protected Map.Entry<K, V> standardLowerEntry(K key)

A sensible definition of lowerEntry in terms of the lastEntry() of headMap(Object, boolean). If you override headMap, you may wish to override lowerEntry to forward to this implementation.

Annotations
@CheckForNull
standardLowerKeyback to summary
protected K standardLowerKey(K key)

A sensible definition of lowerKey in terms of lowerEntry. If you override lowerEntry, you may wish to override lowerKey to forward to this implementation.

Annotations
@CheckForNull
standardPollFirstEntryback to summary
protected Map.Entry<K, V> standardPollFirstEntry()

A sensible definition of pollFirstEntry in terms of the iterator of entrySet. If you override entrySet, you may wish to override pollFirstEntry to forward to this implementation.

Annotations
@CheckForNull
standardPollLastEntryback to summary
protected Map.Entry<K, V> standardPollLastEntry()

A sensible definition of pollFirstEntry in terms of the iterator of the entrySet of descendingMap. If you override descendingMap, you may wish to override pollFirstEntry to forward to this implementation.

Annotations
@CheckForNull
standardSubMapback to summary
protected SortedMap<K, V> standardSubMap(K fromKey, K toKey)

Overrides com.google.common.collect.ForwardingSortedMap.standardSubMap.

A sensible definition of subMap(Object, Object) in terms of subMap(Object, boolean, Object, boolean). If you override subMap(K, boolean, K, boolean), you may wish to override subMap to forward to this implementation.

Annotations
@Override
standardTailMapback to summary
protected SortedMap<K, V> standardTailMap(K fromKey)

A sensible definition of tailMap(Object) in terms of tailMap(Object, boolean). If you override tailMap(K, boolean), you may wish to override tailMap to forward to this implementation.

subMapback to summary
public NavigableMap<K, V> subMap(K fromKey, boolean fromInclusive, K toKey, boolean toInclusive)

Implements java.util.NavigableMap.subMap.

Doc from java.util.NavigableMap.subMap.

Returns a view of the portion of this map whose keys range from fromKey to toKey. If fromKey and toKey are equal, the returned map is empty unless fromInclusive and toInclusive are both true. The returned map is backed by this map, so changes in the returned map are reflected in this map, and vice-versa. The returned map supports all optional map operations that this map supports.

The returned map will throw an IllegalArgumentException on an attempt to insert a key outside of its range, or to construct a submap either of whose endpoints lie outside its range.

Parameters
fromKey:K

low endpoint of the keys in the returned map

fromInclusive:boolean

true if the low endpoint is to be included in the returned view

toKey:K

high endpoint of the keys in the returned map

toInclusive:boolean

true if the high endpoint is to be included in the returned view

Returns:NavigableMap<K, V>

a view of the portion of this map whose keys range from fromKey to toKey

Annotations
@Override
tailMapback to summary
public NavigableMap<K, V> tailMap(K fromKey, boolean inclusive)

Implements java.util.NavigableMap.tailMap.

Doc from java.util.NavigableMap.tailMap.

Returns a view of the portion of this map whose keys are greater than (or equal to, if inclusive is true) fromKey. The returned map is backed by this map, so changes in the returned map are reflected in this map, and vice-versa. The returned map supports all optional map operations that this map supports.

The returned map will throw an IllegalArgumentException on an attempt to insert a key outside its range.

Parameters
fromKey:K

low endpoint of the keys in the returned map

inclusive:boolean

true if the low endpoint is to be included in the returned view

Returns:NavigableMap<K, V>

a view of the portion of this map whose keys are greater than (or equal to, if inclusive is true) fromKey

Annotations
@Override
com.google.common.collect back to summary

protected Class ForwardingNavigableMap.StandardDescendingMap

extends Maps.DescendingMap<K extends @Nullable Object, V extends @Nullable Object>
Class Inheritance

A sensible implementation of NavigableMap#descendingMap in terms of the methods of this NavigableMap. In many cases, you may wish to override ForwardingNavigableMap#descendingMap to forward to this implementation or a subclass thereof.

In particular, this map iterates over entries with repeated calls to NavigableMap#lowerEntry. If a more efficient means of iteration is available, you may wish to override the entryIterator() method of this class.

Since
12.0

Constructor Summary

AccessConstructor and Description
public
StandardDescendingMap()

Constructor for use by subclasses.

Method Summary

Modifier and TypeMethod and Description
protected Iterator<Map.Entry<K, V>>
pack-priv NavigableMap<K, V>
public void
replaceAll(BiFunction<? super K, ? super V, ? extends V>
the function to apply to each entry
function
)

Overrides default java.util.Map.replaceAll.

Replaces each entry's value with the result of invoking the given function on that entry until all entries have been processed or the function throws an exception.
Inherited from com.google.common.collect.Maps.DescendingMap:
ceilingEntryceilingKeycomparatorcreateEntrySetdelegatedescendingKeySetdescendingMapentrySetfirstEntryfirstKeyfloorEntryfloorKeyheadMapheadMaphigherEntryhigherKeykeySetlastEntrylastKeylowerEntrylowerKeynavigableKeySetpollFirstEntrypollLastEntrysubMapsubMaptailMaptailMaptoStringvalues

Constructor Detail

StandardDescendingMapback to summary
public StandardDescendingMap()

Constructor for use by subclasses.

Method Detail

entryIteratorback to summary
protected Iterator<Map.Entry<K, V>> entryIterator()

Implements abstract com.google.common.collect.Maps.DescendingMap.entryIterator.

Annotations
@Override
forwardback to summary
pack-priv NavigableMap<K, V> forward()

Implements abstract com.google.common.collect.Maps.DescendingMap.forward.

Annotations
@Override
replaceAllback to summary
public void replaceAll(BiFunction<? super K, ? super V, ? extends V> function)

Overrides default java.util.Map.replaceAll.

Doc from java.util.Map.replaceAll.

Replaces each entry's value with the result of invoking the given function on that entry until all entries have been processed or the function throws an exception. Exceptions thrown by the function are relayed to the caller.

Parameters
function:BiFunction<? super K, ? super V, ? extends V>

the function to apply to each entry

Annotations
@Override
com.google.common.collect back to summary

protected Class ForwardingNavigableMap.StandardNavigableKeySet

extends Maps.NavigableKeySet<K extends @Nullable Object, V extends @Nullable Object>
Class Inheritance

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

AccessConstructor and Description
public
StandardNavigableKeySet()

Constructor for use by subclasses.

Method Summary

Inherited from com.google.common.collect.Maps.NavigableKeySet:
ceilingdescendingIteratordescendingSetfloorheadSetheadSethigherlowermappollFirstpollLastsubSetsubSettailSettailSet

Constructor Detail

StandardNavigableKeySetback to summary
public StandardNavigableKeySet()

Constructor for use by subclasses.