Module com.rezzedup.util.valuables
Package com.rezzedup.util.valuables
Interface DefaultGetter<S,V>
-
- Type Parameters:
S- storage typeV- value type
- All Superinterfaces:
Defaultable<V>,Getter<S,V>
- All Known Subinterfaces:
DefaultAdaptedKeyValue<S,K,O,V>,DefaultAdaptedValue<S,O,V>,DefaultKeyValue<S,K,V>,DefaultValue<S,V>
public interface DefaultGetter<S,V> extends Defaultable<V>, Getter<S,V>
Gets a value from storage or a default fallback.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default VgetOrDefault(S storage)Gets a value from storage or the default fallback value if it doesn't exist.-
Methods inherited from interface com.rezzedup.util.valuables.Defaultable
getDefaultValue
-
-