public class AbstractImmutableEntry<K,V> extends Object implements Map.Entry<K,V>, Serializable
Constructor and Description |
---|
AbstractImmutableEntry(K key,
V value) |
Modifier and Type | Method and Description |
---|---|
K |
getKey() |
static <K> Function<Map.Entry<K,?>,K> |
getKeyFunction() |
static <K,V> Function<Map.Entry<K,V>,Pair<K,V>> |
getPairFunction() |
V |
getValue() |
static <V> Function<Map.Entry<?,V>,V> |
getValueFunction() |
V |
setValue(V value)
|
String |
toString()
Returns a string representation of the form
{key}={value} . |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
comparingByKey, comparingByKey, comparingByValue, comparingByValue, equals, hashCode
public V setValue(V value)
This implementation throws an UnsupportedOperationException
. Override this method to support mutable
map entries.
Copyright © 2004–2017. All rights reserved.