Package org.ojalgo.type.keyvalue
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, likeMap.Entry
withoutMap.Entry.setValue(Object)
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
KeyValue.Dual<T>
A pair of the same type.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default K
first()
K
getKey()
V
getValue()
default K
left()
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 V
right()
default V
second()
-
-
-
Method Detail
-
of
static <K> KeyValue<K,PrimitiveNumber> of(K key, byte value)
-
of
static <K> KeyValue<K,PrimitiveNumber> of(K key, double value)
-
of
static <K> KeyValue<K,PrimitiveNumber> of(K key, float value)
-
of
static <K> KeyValue<K,PrimitiveNumber> of(K key, int value)
-
of
static <K> KeyValue<KeyValue.Dual<K>,PrimitiveNumber> of(K key1, K key2, byte value)
-
of
static <K> KeyValue<KeyValue.Dual<K>,PrimitiveNumber> of(K key1, K key2, double value)
-
of
static <K> KeyValue<KeyValue.Dual<K>,PrimitiveNumber> of(K key1, K key2, float value)
-
of
static <K> KeyValue<KeyValue.Dual<K>,PrimitiveNumber> of(K key1, K key2, int value)
-
of
static <K> KeyValue<KeyValue.Dual<K>,PrimitiveNumber> of(K key1, K key2, long value)
-
of
static <K> KeyValue<KeyValue.Dual<K>,PrimitiveNumber> of(K key1, K key2, short value)
-
of
static <K,V> KeyValue<KeyValue.Dual<K>,V> of(K key1, K key2, V value)
-
of
static <K> KeyValue<K,PrimitiveNumber> of(K key, long value)
-
of
static <K> KeyValue<K,PrimitiveNumber> of(K key, short value)
-
of
static <K,V> KeyValue<K,V> of(K key, V value)
-
first
default K first()
-
getKey
K getKey()
-
getValue
V getValue()
-
left
default K left()
-
right
default V right()
-
second
default V second()
-
-