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 protected
BooleanUserExperimentalFlag(String flagKey)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Boolean
deserializeValue(Object serializedValue)
Convert the serialized value into the usable instance.Boolean
getDefaultValue()
Object
serializeValue(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:
getDefaultValue
in classUserExperimentalFlag<Boolean>
-
serializeValue
public Object serializeValue(Boolean rawValue)
Description copied from class:UserExperimentalFlag
Convert the usable value into a serializable form that can be stored in the user property. If no changes are necessary, simply returning therawValue
is fine.- Specified by:
serializeValue
in classUserExperimentalFlag<Boolean>
-
deserializeValue
protected Boolean deserializeValue(Object serializedValue)
Description copied from class:UserExperimentalFlag
Convert the serialized value into the usable instance. If the instance is invalid (like after migration), returningnull
will force to return theUserExperimentalFlag.getDefaultValue()
- Specified by:
deserializeValue
in classUserExperimentalFlag<Boolean>
-
-