Package growthbook.sdk.java
Enum Class Operator
- All Implemented Interfaces:
Serializable
,Comparable<Operator>
,Constable
Operator for use in the condition JSON
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription$all$elemMatch$eq$exists$gt$gte$in$inGroup$lt$lte$ne$nin$not$notInGroup$regex$size$type$veq$vgt$vgte$vlt$vlte$vne -
Method Summary
Modifier and TypeMethodDescriptionstatic Operator
fromString
(String stringValue) Get a nullable enum Operator from the string value.toString()
static Operator
Returns the enum constant of this class with the specified name.static Operator[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
-
Enum Constant Details
-
IN
$in -
NIN
$nin -
GT
$gt -
GTE
$gte -
LT
$lt -
LTE
$lte -
REGEX
$regex -
NE
$ne -
EQ
$eq -
SIZE
$size -
ELEMENT_MATCH
$elemMatch -
ALL
$all -
NOT
$not -
TYPE
$type -
EXISTS
$exists -
VERSION_GT
$vgt -
VERSION_GTE
$vgte -
VERSION_LT
$vlt -
VERSION_LTE
$vlte -
VERSION_NE
$vne -
VERSION_EQ
$veq -
IN_GROUP
$inGroup -
NOT_IN_GROUP
$notInGroup
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
toString
-
fromString
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
-