java.io.Serializable
, java.util.Map.Entry<K,V>
ImmutableEntry
, ImmutableEntryWithHashingStrategy
public class AbstractImmutableEntry<K,V>
extends java.lang.Object
implements java.util.Map.Entry<K,V>, java.io.Serializable
Constructor | Description |
---|---|
AbstractImmutableEntry(K key,
V value) |
Modifier and Type | Method | Description |
---|---|---|
K |
getKey() |
|
static <K> Function<java.util.Map.Entry<K,?>,K> |
getKeyFunction() |
Deprecated.
Since 6.2 - Use
Functions.getKeyFunction() instead. |
static <K,V> Function<java.util.Map.Entry<K,V>,Pair<K,V>> |
getPairFunction() |
|
V |
getValue() |
|
static <V> Function<java.util.Map.Entry<?,V>,V> |
getValueFunction() |
Deprecated.
Since 6.2 - Use
Functions.getValueFunction() instead. |
V |
setValue(V value) |
|
java.lang.String |
toString() |
Returns a string representation of the form
{key}={value} . |
@Deprecated public static <K> Function<java.util.Map.Entry<K,?>,K> getKeyFunction()
Functions.getKeyFunction()
instead.@Deprecated public static <V> Function<java.util.Map.Entry<?,V>,V> getValueFunction()
Functions.getValueFunction()
instead.public V setValue(V value)
This implementation throws an UnsupportedOperationException
. Override this method to support mutable
map entries.
public java.lang.String toString()
{key}={value}
.toString
in class java.lang.Object
Copyright © 2004–2018. All rights reserved.