| Package | Description |
|---|---|
| icu.easyj.core.convert | |
| icu.easyj.core.enums |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
ConvertUtils.canConvert(DataType sourceType,
DataType targetType)
判断是否可以转换
|
static <T> T |
ConvertUtils.convert(Object source,
DataType targetType)
转换
|
static <T> T |
ConvertUtils.convert(Object source,
DataType targetType,
T defaultValue)
转换
|
static <T> List<T> |
ConvertUtils.convertList(Collection<?> sourceList,
DataType targetType)
转换列表数据
|
| Modifier and Type | Method and Description |
|---|---|
static DataType |
DataType.getByClass(Class<?> clazz)
根据数据类获取枚举
|
static DataType |
DataType.getByCode(int code)
根据代码获取枚举
|
static DataType |
DataType.getByType(String type)
根据类型字符串获取枚举
|
static DataType |
DataType.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DataType[] |
DataType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Copyright © 2021–2022 EasyJ开源社区. All rights reserved.