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
Modifier and TypeMethodDescription@Nullable StringReturns the payload of the feature flag if it is enabled and has a payload, null otherwise.@Nullable StringReturns the variant of the feature flag if it is enabled and a variant, null otherwise.booleanReturns true if the feature flag is enabled, false otherwise.booleantoString()
-
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.
-
getPayload
Returns the payload of the feature flag if it is enabled and has a payload, null otherwise.Note that a feature flag which is enabled but has no payload will return null
-
isInconclusive
public boolean isInconclusive() -
toString
-