Interface KeyValue<K,V>
- All Known Subinterfaces:
EntryPair<K,V>, EntryPair.KeyedPrimitive<K>
- All Known Implementing Classes:
AlphaVantageParser.Data, DatePrice, DatePrice.DefaultDP, EntryPair.ObjectByte, EntryPair.ObjectDouble, EntryPair.ObjectFloat, EntryPair.ObjectInt, EntryPair.ObjectLong, EntryPair.ObjectObject, EntryPair.ObjectShort, IEXTradingParser.Data, KeyValue.Dual, YahooParser.Data
public interface KeyValue<K,V>
A pair, like
Map.Entry without Map.Entry.setValue(Object).-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA pair of the same type. -
Method Summary
Modifier and TypeMethodDescriptiondefault Kfirst()getKey()getValue()default Kleft()static <K> KeyValue<K, PrimitiveNumber> of(K key, byte value) static <K> KeyValue<K, PrimitiveNumber> of(K key, double value) static <K> KeyValue<K, PrimitiveNumber> of(K key, float value) static <K> KeyValue<K, PrimitiveNumber> of(K key, int value) static <K> KeyValue<K, PrimitiveNumber> of(K key, long value) static <K> KeyValue<K, PrimitiveNumber> of(K key, short value) static <K> KeyValue<KeyValue.Dual<K>, PrimitiveNumber> of(K key1, K key2, byte value) static <K> KeyValue<KeyValue.Dual<K>, PrimitiveNumber> of(K key1, K key2, double value) static <K> KeyValue<KeyValue.Dual<K>, PrimitiveNumber> of(K key1, K key2, float value) static <K> KeyValue<KeyValue.Dual<K>, PrimitiveNumber> of(K key1, K key2, int value) static <K> KeyValue<KeyValue.Dual<K>, PrimitiveNumber> of(K key1, K key2, long value) static <K> KeyValue<KeyValue.Dual<K>, PrimitiveNumber> of(K key1, K key2, short value) static <K,V> KeyValue <KeyValue.Dual<K>, V> of(K key1, K key2, V value) static <K,V> KeyValue <K, V> of(K key, V value) default Vright()default Vsecond()