public static class Converters.BeanConverter extends Object implements ValueConverter
| Constructor and Description |
|---|
BeanConverter(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.
|
static boolean |
isBeanClass(Class<?> clazz) |
public BeanConverter(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 nullpublic static boolean isBeanClass(Class<?> clazz)