Class MapEntry<K,V>
- java.lang.Object
-
- com.exonum.binding.common.collect.MapEntry<K,V>
-
- Type Parameters:
K
- the key typeV
- the value type
public abstract class MapEntry<K,V> extends java.lang.Object
A map entry: a key-value pair. This entry does not permit null keys and values.A map entry contains a copy of the data in the corresponding map index. Unlike
Map.Entry
, it does not reflect the changes made to the map since this entry had been created.
-
-
Constructor Summary
Constructors Constructor Description MapEntry()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract K
getKey()
Returns the key corresponding to this entry.abstract V
getValue()
Returns the value corresponding to this entry.static <K,V>
MapEntry<K,V>valueOf(K key, V value)
Creates a new MapEntry from the given key and value.
-