Package growthbook.sdk.java
Enum Class DataType
- All Implemented Interfaces:
Serializable
,Comparable<DataType>
,Constable
A data type class used internally to help evaluate conditions
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionwhen the type is an arraywhen the type is a booleanwhen the type is a JSON nullwhen the type is a numberwhen the type is an objectwhen the type is a stringwhen the type is not present, e.g.when the type is unknown. -
Method Summary
Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
-
Enum Constant Details
-
STRING
when the type is a string -
NUMBER
when the type is a number -
BOOLEAN
when the type is a boolean -
ARRAY
when the type is an array -
OBJECT
when the type is an object -
NULL
when the type is a JSON null -
UNDEFINED
when the type is not present, e.g. field doesn't exist or is a Java null -
UNKNOWN
when the type is unknown. Can occur when there is a deserialization error.
-
-
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
-