Class AbstractImmutableEntry<K,V>
- java.lang.Object
-
- org.eclipse.collections.impl.tuple.AbstractImmutableEntry<K,V>
-
- All Implemented Interfaces:
Serializable
,Map.Entry<K,V>
- Direct Known Subclasses:
ImmutableEntry
,ImmutableEntryWithHashingStrategy
public class AbstractImmutableEntry<K,V> extends Object implements Map.Entry<K,V>, Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AbstractImmutableEntry(K key, V value)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description K
getKey()
static <K> Function<Map.Entry<K,?>,K>
getKeyFunction()
Deprecated.Since 6.2 - UseFunctions.getKeyFunction()
instead.static <K,V>
Function<Map.Entry<K,V>,Pair<K,V>>getPairFunction()
V
getValue()
static <V> Function<Map.Entry<?,V>,V>
getValueFunction()
Deprecated.Since 6.2 - UseFunctions.getValueFunction()
instead.V
setValue(V value)
String
toString()
Returns a string representation of the form{key}={value}
.
-
-
-
Method Detail
-
getKeyFunction
@Deprecated public static <K> Function<Map.Entry<K,?>,K> getKeyFunction()
Deprecated.Since 6.2 - UseFunctions.getKeyFunction()
instead.
-
getValueFunction
@Deprecated public static <V> Function<Map.Entry<?,V>,V> getValueFunction()
Deprecated.Since 6.2 - UseFunctions.getValueFunction()
instead.
-
setValue
public V setValue(V value)
This implementation throws an
UnsupportedOperationException
. Override this method to support mutable map entries.
-
-