Module com.rezzedup.util.valuables
Package com.rezzedup.util.valuables
Interface DefaultKeyValue<S,K,V>
-
- Type Parameters:
S- storage typeK- key typeV- value type
- All Superinterfaces:
Defaultable<V>,DefaultGetter<S,V>,DefaultSetter<S,V>,DefaultValue<S,V>,Getter<S,V>,KeyHolder<K>,KeyValue<S,K,V>,Setter<S,V>,Value<S,V>
- All Known Subinterfaces:
DefaultAdaptedKeyValue<S,K,O,V>
public interface DefaultKeyValue<S,K,V> extends DefaultValue<S,V>, KeyValue<S,K,V>
A value associated with a default fallback and a key.
-
-
Method Summary
Static Methods Modifier and Type Method Description static <S,K,V>
DefaultKeyValue<S,K,V>of(V def, KeyValue<S,K,V> value)Creates a newDefaultKeyValueby delegating to the provided arguments.-
Methods inherited from interface com.rezzedup.util.valuables.Defaultable
getDefaultValue
-
Methods inherited from interface com.rezzedup.util.valuables.DefaultGetter
getOrDefault
-
Methods inherited from interface com.rezzedup.util.valuables.DefaultValue
setAsDefault, setAsDefaultIfUnset
-
-
-
-
Method Detail
-
of
static <S,K,V> DefaultKeyValue<S,K,V> of(V def, KeyValue<S,K,V> value)
Creates a newDefaultKeyValueby delegating to the provided arguments.- Type Parameters:
S- storage typeK- key typeV- value type- Parameters:
def- the default fallback valuevalue- an existing key value implementation- Returns:
- a new instance composed of the arguments
-
-