public enum DataType extends Enum<DataType>
| Enum Constant and Description |
|---|
BIG_DECIMAL |
BIG_INTEGER |
BOOLEAN |
BOOLEAN_PRIMITIVE |
BYTE |
BYTE_PRIMITIVE |
CHAR_PRIMITIVE |
CHARACTER |
DATE |
DOUBLE |
DOUBLE_PRIMITIVE |
DURATION |
FLOAT |
FLOAT_PRIMITIVE |
INT_PRIMITIVE |
INTEGER |
LONG |
LONG_PRIMITIVE |
SHORT |
SHORT_PRIMITIVE |
STRING |
| Modifier and Type | Method and Description |
|---|---|
static DataType |
getByClass(Class<?> clazz)
根据数据类获取枚举
|
static DataType |
getByCode(int code)
根据代码获取枚举
|
static DataType |
getByType(String type)
根据类型字符串获取枚举
|
Class<?> |
getClazz() |
int |
getCode() |
org.springframework.core.convert.TypeDescriptor |
getTypeDesc() |
boolean |
isPrimitive() |
static DataType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DataType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DataType STRING
public static final DataType CHAR_PRIMITIVE
public static final DataType CHARACTER
public static final DataType SHORT_PRIMITIVE
public static final DataType SHORT
public static final DataType INT_PRIMITIVE
public static final DataType INTEGER
public static final DataType LONG_PRIMITIVE
public static final DataType LONG
public static final DataType BIG_INTEGER
public static final DataType FLOAT_PRIMITIVE
public static final DataType FLOAT
public static final DataType DOUBLE_PRIMITIVE
public static final DataType DOUBLE
public static final DataType BIG_DECIMAL
public static final DataType BOOLEAN_PRIMITIVE
public static final DataType BOOLEAN
public static final DataType BYTE_PRIMITIVE
public static final DataType BYTE
public static final DataType DATE
public static final DataType DURATION
public static DataType[] values()
for (DataType c : DataType.values()) System.out.println(c);
public static DataType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic int getCode()
public Class<?> getClazz()
public org.springframework.core.convert.TypeDescriptor getTypeDesc()
public boolean isPrimitive()
@Nullable public static DataType getByCode(int code)
code - 代码@Nullable public static DataType getByType(String type)
type - 类型字符串Copyright © 2021–2022 EasyJ????. All rights reserved.