Class FeatureFlagState

java.lang.Object
net.hollowcube.posthog.FeatureFlagState

public final class FeatureFlagState extends Object
  • Field Details

  • Method Details

    • isEnabled

      public boolean isEnabled()
      Returns true if the feature flag is enabled, false otherwise. A variant response is true.
    • getVariant

      @Nullable public @Nullable String 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

      public String toString()
      Overrides:
      toString in class Object