Package net.pricefx.common.api.pa
Enum Class DataType
- All Implemented Interfaces:
Serializable
,Comparable<DataType>
,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiondeserialize
(String sValue) static DataType
boolean
isAssignable
(Object value) static boolean
static boolean
static boolean
isDateTime
(Object value) static boolean
static boolean
boolean
boolean
isTime()
static String
numberToString
(Number number, int numberOfDecimals) static DataType
toDataType
(Class<?> clazz) static DataType
toDataType
(Object value, DataType preferred) static Number
static DataType
Returns the enum constant of this class with the specified name.static DataType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
STRING
-
NUMBER
-
DATE
-
BOOLEAN
-
DATETIME
-
LOB
-
LONG
-
UNKNOWN
-
-
Field Details
-
MAX_STRING_LENGTH
public static int MAX_STRING_LENGTH -
MAX_LOB_LENGTH
public static int MAX_LOB_LENGTH
-
-
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
-
get
-
format
-
parse
-
parse
-
toNumber
-
numberToString
-
serialize
-
deserialize
-
isAssignable
-
isNumeric
public boolean isNumeric() -
isTime
public boolean isTime() -
toDataType
-
toDataType
-
isBoolean
-
isDate
-
isDateTime
-
isNumber
-
isLong
-