|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.sal.api.features.EnabledDarkFeatures
@Immutable public final class EnabledDarkFeatures
Represents a set of enabled features.
| Field Summary | |
|---|---|
static EnabledDarkFeatures |
NONE
Shorthand in case there are no enabled dark features or they are disabled |
| Constructor Summary | |
|---|---|
EnabledDarkFeatures(com.google.common.collect.ImmutableMap<FeatureKeyScope,com.google.common.collect.ImmutableSet<String>> enabledFeatures)
Create an instance of enabled features based on the given map. |
|
| Method Summary | |
|---|---|
com.google.common.collect.ImmutableSet<String> |
getFeatureKeys()
Return all enabled feature keys. |
com.google.common.collect.ImmutableSet<String> |
getFeatureKeys(com.google.common.base.Predicate<FeatureKeyScope> criteria)
Returns all enabled feature keys matching the given criteria. |
boolean |
isFeatureEnabled(String featureKey)
Check that the given feature is enabled |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final EnabledDarkFeatures NONE
| Constructor Detail |
|---|
public EnabledDarkFeatures(com.google.common.collect.ImmutableMap<FeatureKeyScope,com.google.common.collect.ImmutableSet<String>> enabledFeatures)
enabledFeatures - a map of enabled features| Method Detail |
|---|
public com.google.common.collect.ImmutableSet<String> getFeatureKeys()
public com.google.common.collect.ImmutableSet<String> getFeatureKeys(com.google.common.base.Predicate<FeatureKeyScope> criteria)
criteria - the filter condition to be applied on the set of enabled features
public boolean isFeatureEnabled(String featureKey)
featureKey - the feature key to be checked
true if the given feature key is enabled, false otherwisepublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||