Package net.hollowcube.posthog
Class FeatureFlagState
java.lang.Object
net.hollowcube.posthog.FeatureFlagState
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final FeatureFlagStatestatic final FeatureFlagStatestatic final FeatureFlagState -
Method Summary
-
Field Details
-
ENABLED
-
DISABLED
-
REMOTE_EVAL_NOT_ALLOWED
-
-
Method Details
-
isEnabled
public boolean isEnabled()Returns true if the feature flag is enabled, false otherwise. A variant response is true. -
getVariant
Returns the variant of the feature flag if it is enabled and a variant, null otherwise.Note that a feature flag which is enabled but not a variant will return null.
-
isInconclusive
public boolean isInconclusive() -
toString
-