Package io.timeandspace.collect.map
Interface KeyValue<K,V>
-
- Type Parameters:
K
- the key typeV
- the value type
public interface KeyValue<K,V>
Defines a simple key-value pair. The difference between this interface andMap.Entry
is that this interface doesn't specifyObject.equals(java.lang.Object)
andObject.hashCode()
and whether they should depend on key's and value's equivalence and hash codes at all. KeyValue also doesn't have an equivalent ofMap.Entry
'ssetValue()
method.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description K
getKey()
Gets the key of the pair.V
getValue()
Gets the value of the pair.
-