public interface FeatureFlag
Modifier and Type | Method and Description |
---|---|
String |
getName()
Returns the simple property name of this feature flag.
|
boolean |
isOn()
Returns whether the feature flag is activated.
|
default boolean |
isSet()
Returns whether the feature flag has been configured.
|
String |
name()
Returns the name of a specific flag included in a class that implements this interface.
|
default void |
reset()
Restores the feature flag to the startup state (if supported by the underlying conf mechanism).
|
void |
setOn(Boolean newValue)
Sets the status of the feature flag.
|
String name()
name
that is available in the Enum implicitly
implements this method of the interfaceString getName()
boolean isOn()
default boolean isSet()
void setOn(Boolean newValue)
newValue
- The new status of the feature flag.default void reset()
Copyright © 2016–2018 Yahoo! Inc.. All rights reserved.