org.ojalgo.type.keyvalue
Interface KeyValue<K,V>
- All Superinterfaces:
- Comparable<KeyValue<K,?>>
- All Known Implementing Classes:
- ComparableToDouble, ComparableToObject, DatePrice, GoogleSymbol.Data, IntToDouble, IntToObject, LongToDouble, LongToObject, MapEntry, MethodToAtomicLong, StringToDouble, StringToInt, StringToObject, YahooSymbol.Data
public interface KeyValue<K,V>
- extends Comparable<KeyValue<K,?>>
A key-value pair or key-to-value map. The intention is that
#equals(Object), #hashCode() and
Comparable.compareTo(Object) operates on the key part only.
This is NOT compatibe with how Map.Entry
implements those methods.
Further it is intented that implementations should be immutable.
- Author:
- apete
getKey
K getKey()
getValue
V getValue()