@FunctionalInterface public interface TypeConverter
| Modifier and Type | Method and Description |
|---|---|
Object |
convert(Type targetType,
Object value)
转换为指定类型
如果类型无法确定,将读取默认值的类型做为目标类型 |
Object convert(Type targetType, Object value)
targetType - 目标Type,非泛型类使用value - 原始值IllegalArgumentException - 无法确定目标类型,且默认值为null,无法确定类型Copyright © 2024. All rights reserved.