Package com.gooddata.featureflag
Class ProjectFeatureFlags
- java.lang.Object
-
- com.gooddata.featureflag.ProjectFeatureFlags
-
- All Implemented Interfaces:
Iterable<ProjectFeatureFlag>
public class ProjectFeatureFlags extends Object implements Iterable<ProjectFeatureFlag>
-
-
Field Summary
Fields Modifier and Type Field Description static org.springframework.web.util.UriTemplatePROJECT_FEATURE_FLAGS_TEMPLATEstatic StringPROJECT_FEATURE_FLAGS_URI
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisEnabled(String flagName)Returns true if the project feature flag with given name exists and is enabled, false otherwise.Iterator<ProjectFeatureFlag>iterator()StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Field Detail
-
PROJECT_FEATURE_FLAGS_URI
public static final String PROJECT_FEATURE_FLAGS_URI
- See Also:
- Constant Field Values
-
PROJECT_FEATURE_FLAGS_TEMPLATE
public static final org.springframework.web.util.UriTemplate PROJECT_FEATURE_FLAGS_TEMPLATE
-
-
Method Detail
-
iterator
public Iterator<ProjectFeatureFlag> iterator()
- Specified by:
iteratorin interfaceIterable<ProjectFeatureFlag>
-
isEnabled
public boolean isEnabled(String flagName)
Returns true if the project feature flag with given name exists and is enabled, false otherwise.- Parameters:
flagName- the name of project feature flag- Returns:
- true if the project feature flag with given name exists and is enabled, false otherwise
-
-