| 限定符和类型 | 字段和说明 |
|---|---|
static CollectionConverter |
INSTANCE
单例实体
|
| 构造器和说明 |
|---|
CollectionConverter() |
| 限定符和类型 | 方法和说明 |
|---|---|
Collection<?> |
convert(Type targetType,
Object value)
转换为指定类型
如果类型无法确定,将读取默认值的类型做为目标类型 |
Collection<?> |
convert(Type collectionType,
Type elementType,
Object value)
转换
|
public static CollectionConverter INSTANCE
public Collection<?> convert(Type targetType, Object value)
Converterpublic Collection<?> convert(Type collectionType, Type elementType, Object value)
collectionType - 集合类型elementType - 集合中元素类型value - 被转换的值Copyright © 2024. All rights reserved.