Enum ExpressionType
- java.lang.Object
-
- java.lang.Enum<ExpressionType>
-
- com.speedment.runtime.compute.expression.ExpressionType
-
- All Implemented Interfaces:
Serializable,Comparable<ExpressionType>
public enum ExpressionType extends Enum<ExpressionType>
Every expression type has a corresponding interface to get a type-safe way of applying the expression without boxing any values. This enumeration can be used to tell which type an expression has.- Since:
- 3.1.0
- Author:
- Emil Forslund
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BIG_DECIMALBIG_DECIMAL_NULLABLEBOOLEANBOOLEAN_NULLABLEBYTEBYTE_NULLABLECHARCHAR_NULLABLEDOUBLEDOUBLE_NULLABLEENUMENUM_NULLABLEFLOATFLOAT_NULLABLEINTINT_NULLABLELONGLONG_NULLABLESHORTSHORT_NULLABLESTRINGSTRING_NULLABLE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisNullable()Returnstrueif this type is one of the nullable types, and otherwisefalsestatic ExpressionTypevalueOf(String name)Returns the enum constant of this type with the specified name.static ExpressionType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BYTE
public static final ExpressionType BYTE
-
BYTE_NULLABLE
public static final ExpressionType BYTE_NULLABLE
-
SHORT
public static final ExpressionType SHORT
-
SHORT_NULLABLE
public static final ExpressionType SHORT_NULLABLE
-
INT
public static final ExpressionType INT
-
INT_NULLABLE
public static final ExpressionType INT_NULLABLE
-
LONG
public static final ExpressionType LONG
-
LONG_NULLABLE
public static final ExpressionType LONG_NULLABLE
-
FLOAT
public static final ExpressionType FLOAT
-
FLOAT_NULLABLE
public static final ExpressionType FLOAT_NULLABLE
-
DOUBLE
public static final ExpressionType DOUBLE
-
DOUBLE_NULLABLE
public static final ExpressionType DOUBLE_NULLABLE
-
CHAR
public static final ExpressionType CHAR
-
CHAR_NULLABLE
public static final ExpressionType CHAR_NULLABLE
-
BOOLEAN
public static final ExpressionType BOOLEAN
-
BOOLEAN_NULLABLE
public static final ExpressionType BOOLEAN_NULLABLE
-
ENUM
public static final ExpressionType ENUM
-
ENUM_NULLABLE
public static final ExpressionType ENUM_NULLABLE
-
STRING
public static final ExpressionType STRING
-
STRING_NULLABLE
public static final ExpressionType STRING_NULLABLE
-
BIG_DECIMAL
public static final ExpressionType BIG_DECIMAL
-
BIG_DECIMAL_NULLABLE
public static final ExpressionType BIG_DECIMAL_NULLABLE
-
-
Method Detail
-
values
public static ExpressionType[] 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 (ExpressionType c : ExpressionType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ExpressionType 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
-
isNullable
public boolean isNullable()
Returnstrueif this type is one of the nullable types, and otherwisefalse- Returns:
trueif expression result may benull
-
-