Class FeatureKeyDiagnostics

java.lang.Object
growthbook.sdk.java.diagnostics.model.FeatureKeyDiagnostics

public final class FeatureKeyDiagnostics extends Object
Diagnostics metadata for feature keys in the current snapshot.
  • Method Details

    • builder

    • isAvailable

      public boolean isAvailable()
      Whether feature keys were available to inspect.
    • getTotalCount

      public int getTotalCount()
      Total number of feature keys in the inspected snapshot.
    • getSampleLimit

      public int getSampleLimit()
      Maximum number of keys included in sample.
    • getSample

      public List<String> getSample()
      Stable, sorted sample of feature keys.
    • isTruncated

      public boolean isTruncated()
      Whether the key list was truncated to fit the sample limit.
    • getSha256

      @Nullable public String getSha256()
      SHA-256 hash of the sorted feature keys, or null when keys are unavailable.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object