Package jenkins.model.experimentalflags
Class BooleanUserExperimentalFlag
- java.lang.Object
-
- jenkins.model.experimentalflags.UserExperimentalFlag<Boolean>
-
- jenkins.model.experimentalflags.BooleanUserExperimentalFlag
-
- All Implemented Interfaces:
ExtensionPoint
public abstract class BooleanUserExperimentalFlag extends UserExperimentalFlag<Boolean>
- Since:
- 2.395
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBooleanUserExperimentalFlag(String flagKey)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected BooleandeserializeValue(Object serializedValue)Convert the serialized value into the usable instance.BooleangetDefaultValue()ObjectserializeValue(Boolean rawValue)Convert the usable value into a serializable form that can be stored in the user property.-
Methods inherited from class jenkins.model.experimentalflags.UserExperimentalFlag
all, getDisplayName, getFlagConfigPage, getFlagDescriptionPage, getFlagKey, getFlagValue, getFlagValue, getFlagValueForCurrentUser, getShortDescription
-
-
-
-
Constructor Detail
-
BooleanUserExperimentalFlag
protected BooleanUserExperimentalFlag(@NonNull String flagKey)
-
-
Method Detail
-
getDefaultValue
@NonNull public Boolean getDefaultValue()
- Specified by:
getDefaultValuein classUserExperimentalFlag<Boolean>
-
serializeValue
public Object serializeValue(Boolean rawValue)
Description copied from class:UserExperimentalFlagConvert the usable value into a serializable form that can be stored in the user property. If no changes are necessary, simply returning therawValueis fine.- Specified by:
serializeValuein classUserExperimentalFlag<Boolean>
-
deserializeValue
protected Boolean deserializeValue(Object serializedValue)
Description copied from class:UserExperimentalFlagConvert the serialized value into the usable instance. If the instance is invalid (like after migration), returningnullwill force to return theUserExperimentalFlag.getDefaultValue()- Specified by:
deserializeValuein classUserExperimentalFlag<Boolean>
-
-