public interface BaseSetting<T>
extends java.util.function.Supplier<T>, java.util.function.Predicate<T>
Modifier and Type | Interface and Description |
---|---|
static interface |
BaseSetting.JSONSerializable |
static interface |
BaseSetting.JSONSetting<T> |
Modifier and Type | Method and Description |
---|---|
T |
get() |
T |
getDefault() |
default boolean |
isDefault() |
default boolean |
reset()
Reset this setting to its default value.
|
default boolean |
set(T newValue) |
boolean |
setT(T newValue) |
default boolean |
test(T t) |
T get()
get
in interface java.util.function.Supplier<T>
boolean setT(T newValue) throws ProofAsstException
newValue
- the new value of this setting.ProofAsstException
- If validation failedT getDefault()
default boolean reset()
default boolean set(T newValue)
default boolean isDefault()