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
Modifier and Type Method Description KgetKey()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()VgetValue()static <V> Function<Map.Entry<?,V>,V>getValueFunction()Deprecated.Since 6.2 - UseFunctions.getValueFunction()instead.VsetValue(V value)StringtoString()Returns a string representation of the form{key}={value}.
-
Constructor Details
-
Method Details
-
getKeyFunction
Deprecated.Since 6.2 - UseFunctions.getKeyFunction()instead. -
getValueFunction
Deprecated.Since 6.2 - UseFunctions.getValueFunction()instead. -
getPairFunction
-
getKey
-
getValue
-
setValue
This implementation throws an
UnsupportedOperationException. Override this method to support mutable map entries. -
toString
Returns a string representation of the form{key}={value}.
-