Enum Class Operator

java.lang.Object
java.lang.Enum<Operator>
growthbook.sdk.java.Operator
All Implemented Interfaces:
Serializable, Comparable<Operator>, Constable

public enum Operator extends Enum<Operator>
Operator for use in the condition JSON
  • Enum Constant Details

    • IN

      public static final Operator IN
      $in
    • NIN

      public static final Operator NIN
      $nin
    • GT

      public static final Operator GT
      $gt
    • GTE

      public static final Operator GTE
      $gte
    • LT

      public static final Operator LT
      $lt
    • LTE

      public static final Operator LTE
      $lte
    • REGEX

      public static final Operator REGEX
      $regex
    • NE

      public static final Operator NE
      $ne
    • EQ

      public static final Operator EQ
      $eq
    • SIZE

      public static final Operator SIZE
      $size
    • ELEMENT_MATCH

      public static final Operator ELEMENT_MATCH
      $elemMatch
    • ALL

      public static final Operator ALL
      $all
    • NOT

      public static final Operator NOT
      $not
    • TYPE

      public static final Operator TYPE
      $type
    • EXISTS

      public static final Operator EXISTS
      $exists
    • VERSION_GT

      public static final Operator VERSION_GT
      $vgt
    • VERSION_GTE

      public static final Operator VERSION_GTE
      $vgte
    • VERSION_LT

      public static final Operator VERSION_LT
      $vlt
    • VERSION_LTE

      public static final Operator VERSION_LTE
      $vlte
    • VERSION_NE

      public static final Operator VERSION_NE
      $vne
    • VERSION_EQ

      public static final Operator VERSION_EQ
      $veq
    • IN_GROUP

      public static final Operator IN_GROUP
      $inGroup
    • NOT_IN_GROUP

      public static final Operator NOT_IN_GROUP
      $notInGroup
  • Method Details

    • values

      public static Operator[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Operator valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • toString

      public String toString()
      Overrides:
      toString in class Enum<Operator>
    • fromString

      @Nullable public static Operator fromString(String stringValue)
      Get a nullable enum Operator from the string value. Use this instead of valueOf()
      Parameters:
      stringValue - string to try to parse as an operator
      Returns:
      nullable Operator