Enum ConvertType
- java.lang.Object
-
- java.lang.Enum<ConvertType>
-
- dev.morphia.aggregation.experimental.expressions.impls.ConvertType
-
- All Implemented Interfaces:
Serializable
,Comparable<ConvertType>
public enum ConvertType extends Enum<ConvertType>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getIdentifier()
String
getName()
static ConvertType
valueOf(String name)
Returns the enum constant of this type with the specified name.static ConvertType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DOUBLE
public static final ConvertType DOUBLE
-
STRING
public static final ConvertType STRING
-
OBJECT_ID
public static final ConvertType OBJECT_ID
-
BOOLEAN
public static final ConvertType BOOLEAN
-
DATE
public static final ConvertType DATE
-
INT
public static final ConvertType INT
-
LONG
public static final ConvertType LONG
-
DECIMAL
public static final ConvertType DECIMAL
-
-
Method Detail
-
values
public static ConvertType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ConvertType c : ConvertType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ConvertType 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
-
getIdentifier
public int getIdentifier()
- Returns:
- the numeric identifier of this type
-
getName
public String getName()
- Returns:
- the name of this type
-
-