public class FeatureFlags extends Object implements Iterable<FeatureFlag>
| Modifier and Type | Field and Description |
|---|---|
static org.springframework.web.util.UriTemplate |
AGGREGATED_FEATURE_FLAGS_TEMPLATE |
static String |
AGGREGATED_FEATURE_FLAGS_URI |
| Constructor and Description |
|---|
FeatureFlags() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addFlag(String name,
boolean enabled) |
boolean |
equals(Object o) |
List<FeatureFlag> |
getFeatureFlags()
Deprecated.
use
isEnabled(String) method or Iterable feature of this class |
int |
hashCode() |
boolean |
isEnabled(String flagName)
Returns true if the feature flag with given name exists and is enabled, false otherwise.
|
Iterator<FeatureFlag> |
iterator() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic static final String AGGREGATED_FEATURE_FLAGS_URI
public static final org.springframework.web.util.UriTemplate AGGREGATED_FEATURE_FLAGS_TEMPLATE
protected void addFlag(String name, boolean enabled)
@Deprecated public List<FeatureFlag> getFeatureFlags()
isEnabled(String) method or Iterable feature of this classpublic Iterator<FeatureFlag> iterator()
iterator in interface Iterable<FeatureFlag>public boolean isEnabled(String flagName)
flagName - the name of feature flagCopyright © 2016. All Rights Reserved.