public static class Converters.CollectionConverter extends Object implements ValueConverter
Collection or sub-interfaces and implementations of it.| Constructor and Description |
|---|
CollectionConverter(ValueConverter elementConverter) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
convert(Class<T> type,
Type genericType,
String value)
Converts the given string value into the target type specified by raw and generic type.
|
public CollectionConverter(ValueConverter elementConverter)
public <T> T convert(Class<T> type, Type genericType, String value)
ValueConverterconvert in interface ValueConverterT - the target type parametertype - the target type in raw form, for instance int.class, List.class etc.genericType - the generic target type, same as type for non-generic types; generic type examples are
List<String>, Map<String, Integer> etc.value - the value to convert, may be null