Module com.rezzedup.util.valuables
Package com.rezzedup.util.valuables
Interface DefaultSetter<S,V>
-
- Type Parameters:
S- storage typeV- value type
- All Superinterfaces:
Setter<S,V>
- All Known Subinterfaces:
DefaultAdaptedKeyValue<S,K,O,V>,DefaultAdaptedValue<S,O,V>,DefaultKeyValue<S,K,V>,DefaultValue<S,V>
public interface DefaultSetter<S,V> extends Setter<S,V>
Sets a value in storage with options for default values.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidsetAsDefault(S storage)Sets the value in storage to the default value.voidsetAsDefaultIfUnset(S storage)Sets the value in storage to the default value if there isn't already an existing value yet.
-
-
-
Method Detail
-
setAsDefault
void setAsDefault(S storage)
Sets the value in storage to the default value.- Parameters:
storage- the storage
-
setAsDefaultIfUnset
void setAsDefaultIfUnset(S storage)
Sets the value in storage to the default value if there isn't already an existing value yet.- Parameters:
storage- the storage
-
-