-
- Type Parameters:
S- storage typeK- key typeV- value type
- All Known Subinterfaces:
AdaptedKeyValue<S,K,O,V>,DefaultAdaptedKeyValue<S,K,O,V>,DefaultKeyValue<S,K,V>
public interface KeyValue<S,K,V> extends KeyHolder<K>, Value<S,V>
A value associated with a particular key.
-
-
Method Detail
-
of
static <S,K,V> KeyValue<S,K,V> of(K key, KeyGetter<S,K,V> getter, KeySetter<S,K,V> setter)
Creates a newKeyValueby delegating to the provided arguments.- Type Parameters:
S- storage typeK- key typeV- value type- Parameters:
key- the keygetter- the value gettersetter- the value setter- Returns:
- a new instance composed of the arguments
-
-