Package jenkins.model.experimentalflags
Class BooleanUserExperimentalFlag
java.lang.Object
jenkins.model.experimentalflags.UserExperimentalFlag<Boolean>
jenkins.model.experimentalflags.BooleanUserExperimentalFlag
- All Implemented Interfaces:
ExtensionPoint
- Direct Known Subclasses:
RemoveYuiUserExperimentalFlag
- Since:
- 2.395
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Boolean
deserializeValue
(Object serializedValue) Convert the serialized value into the usable instance.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 Details
-
BooleanUserExperimentalFlag
-
-
Method Details
-
getDefaultValue
- Specified by:
getDefaultValue
in classUserExperimentalFlag<Boolean>
-
serializeValue
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
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>
-