Class FeatureFlags
- java.lang.Object
-
- com.gooddata.sdk.model.featureflag.FeatureFlags
-
- All Implemented Interfaces:
java.lang.Iterable<FeatureFlag>
public class FeatureFlags extends java.lang.Object implements java.lang.Iterable<FeatureFlag>
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringAGGREGATED_FEATURE_FLAGS_URI
-
Constructor Summary
Constructors Constructor Description FeatureFlags()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddFlag(java.lang.String name, boolean enabled)Adds the feature flag of given name and given value.booleanequals(java.lang.Object o)inthashCode()booleanisEnabled(java.lang.String flagName)Returns true if the feature flag with given name exists and is enabled, false otherwise.java.util.Iterator<FeatureFlag>iterator()voidremoveFlag(java.lang.String flagName)Removes flag of given name.java.lang.StringtoString()
-
-
-
Field Detail
-
AGGREGATED_FEATURE_FLAGS_URI
public static final java.lang.String AGGREGATED_FEATURE_FLAGS_URI
- See Also:
- Constant Field Values
-
-
Method Detail
-
addFlag
public void addFlag(java.lang.String name, boolean enabled)Adds the feature flag of given name and given value.- Parameters:
name- feature flag nameenabled- feature flag value (enabled / disabled)
-
removeFlag
public void removeFlag(java.lang.String flagName)
Removes flag of given name.- Parameters:
flagName- name of the flag to remove
-
iterator
public java.util.Iterator<FeatureFlag> iterator()
- Specified by:
iteratorin interfacejava.lang.Iterable<FeatureFlag>
-
isEnabled
public boolean isEnabled(java.lang.String flagName)
Returns true if the feature flag with given name exists and is enabled, false otherwise.- Parameters:
flagName- the name of feature flag- Returns:
- true if the feature flag with given name exists and is enabled, false otherwise
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-