Enum VariantType
- java.lang.Object
-
- java.lang.Enum<VariantType>
-
- org.pipservices3.expressions.variants.VariantType
-
- All Implemented Interfaces:
Serializable,Comparable<VariantType>,Constable
public enum VariantType extends Enum<VariantType>
Defines supported types of variant values.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
-
Method Summary
Modifier and Type Method Description static VariantTypevalueOf(String name)Returns the enum constant of this type with the specified name.static VariantType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Null
public static final VariantType Null
-
Integer
public static final VariantType Integer
-
Long
public static final VariantType Long
-
Float
public static final VariantType Float
-
Double
public static final VariantType Double
-
String
public static final VariantType String
-
Boolean
public static final VariantType Boolean
-
DateTime
public static final VariantType DateTime
-
TimeSpan
public static final VariantType TimeSpan
-
Object
public static final VariantType Object
-
Array
public static final VariantType Array
-
-
Method Detail
-
values
public static VariantType[] values()
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static VariantType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
-