Enum Value.Type
- java.lang.Object
-
- java.lang.Enum<Value.Type>
-
- com.healthmarketscience.jackcess.expr.Value.Type
-
- All Implemented Interfaces:
Serializable,Comparable<Value.Type>
- Enclosing interface:
- Value
public static enum Value.Type extends Enum<Value.Type>
the types supported within the expression evaluation engine
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Value.TypegetPreferredFPType()Value.TypegetPreferredNumericType()booleanisIntegral()booleanisNumeric()booleanisString()booleanisTemporal()static Value.TypevalueOf(String name)Returns the enum constant of this type with the specified name.static Value.Type[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NULL
public static final Value.Type NULL
-
STRING
public static final Value.Type STRING
-
DATE
public static final Value.Type DATE
-
TIME
public static final Value.Type TIME
-
DATE_TIME
public static final Value.Type DATE_TIME
-
LONG
public static final Value.Type LONG
-
DOUBLE
public static final Value.Type DOUBLE
-
BIG_DEC
public static final Value.Type BIG_DEC
-
-
Method Detail
-
values
public static Value.Type[] 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 (Value.Type c : Value.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Value.Type 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
-
isString
public boolean isString()
-
isNumeric
public boolean isNumeric()
-
isIntegral
public boolean isIntegral()
-
isTemporal
public boolean isTemporal()
-
getPreferredFPType
public Value.Type getPreferredFPType()
-
getPreferredNumericType
public Value.Type getPreferredNumericType()
-
-