public class AbstractImmutableEntry<K,V>
extends java.lang.Object
implements java.util.Map.Entry<K,V>, java.io.Serializable
| Constructor and Description |
|---|
AbstractImmutableEntry(K key,
V value) |
| Modifier and Type | Method and Description |
|---|---|
K |
getKey() |
static <K> com.gs.collections.api.block.function.Function<java.util.Map.Entry<K,?>,K> |
getKeyFunction() |
static <K,V> com.gs.collections.api.block.function.Function<java.util.Map.Entry<K,V>,com.gs.collections.api.tuple.Pair<K,V>> |
getPairFunction() |
V |
getValue() |
static <V> com.gs.collections.api.block.function.Function<java.util.Map.Entry<?,V>,V> |
getValueFunction() |
V |
setValue(V value)
|
java.lang.String |
toString()
Returns a string representation of the form
{key}={value}. |
public static <K> com.gs.collections.api.block.function.Function<java.util.Map.Entry<K,?>,K> getKeyFunction()
public static <V> com.gs.collections.api.block.function.Function<java.util.Map.Entry<?,V>,V> getValueFunction()
public static <K,V> com.gs.collections.api.block.function.Function<java.util.Map.Entry<K,V>,com.gs.collections.api.tuple.Pair<K,V>> getPairFunction()
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