| Constructor and Description |
|---|
DefaultConverter() |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
convert(String value,
Class<T> targetType)
Convert value to target type object.
|
static Object |
convertObjectFromString(Class<?> type,
String value)
TODO 需要考虑java的类型转换。
float 4 字节 32位IEEE 754单精度
double 8 字节 64位IEEE 754双精度
byte 1字节 -128到127
short 2 字节 -32,768到32,767
int 4 字节 -2,147,483,648到2,147,483,647
long 8 字节 -9,223,372,036,854,775,808到9,223,372,036, 854,775,807
char 2 字节 整个Unicode字符集
boolean 1 位 True或者false
|
static List<HashMap<Object,Object>> |
paresJson2ListMap(String s)
Pares json to list map list.
|
public <T> T convert(String value, Class<T> targetType)
Converterpublic static Object convertObjectFromString(Class<?> type, String value)
type - the type must not be nullvalue - the valueCopyright © 2024. All rights reserved.