Package io.datarouter.storage.setting
Class MutableBooleanSetting
java.lang.Object
io.datarouter.storage.setting.MutableBooleanSetting
- All Implemented Interfaces:
Setting<java.lang.Boolean>,BooleanSetting,java.util.function.Supplier<java.lang.Boolean>
public class MutableBooleanSetting extends java.lang.Object implements BooleanSetting
-
Constructor Summary
Constructors Constructor Description MutableBooleanSetting(java.util.concurrent.atomic.AtomicBoolean value) -
Method Summary
Modifier and Type Method Description java.lang.Booleanget()java.lang.BooleangetDefaultValue()booleangetHasCustomValue()booleangetHasRedundantCustomValue()java.lang.StringgetName()booleanisValid(java.lang.String value)
-
Constructor Details
-
MutableBooleanSetting
public MutableBooleanSetting(java.util.concurrent.atomic.AtomicBoolean value)
-
-
Method Details
-
getName
public java.lang.String getName() -
getDefaultValue
public java.lang.Boolean getDefaultValue()- Specified by:
getDefaultValuein interfaceSetting<java.lang.Boolean>
-
get
public java.lang.Boolean get() -
getHasCustomValue
public boolean getHasCustomValue()- Specified by:
getHasCustomValuein interfaceSetting<java.lang.Boolean>
-
getHasRedundantCustomValue
public boolean getHasRedundantCustomValue()- Specified by:
getHasRedundantCustomValuein interfaceSetting<java.lang.Boolean>
-
isValid
public boolean isValid(java.lang.String value)
-