public class BeanPropertyType<B> extends Object implements PropertyType<B>
| Constructor and Description |
|---|
BeanPropertyType(TypeInformation beanType,
Mapper mapper) |
| Modifier and Type | Method and Description |
|---|---|
B |
convert(Object object)
Converts the given object (typically read from a property resource) to the given type, if possible.
|
static <B> BeanPropertyType<B> |
of(Class<B> type) |
static <B> BeanPropertyType<B> |
of(Class<B> type,
Mapper mapper) |
Object |
toExportValue(B value)
Converts the given value to its export value.
|
public BeanPropertyType(TypeInformation beanType, Mapper mapper)
public static <B> BeanPropertyType<B> of(Class<B> type, Mapper mapper)
public static <B> BeanPropertyType<B> of(Class<B> type)
public B convert(Object object)
PropertyTypeconvert in interface PropertyType<B>object - the object to convertpublic Object toExportValue(B value)
PropertyTypePropertyType.convert(java.lang.Object).)toExportValue in interface PropertyType<B>value - the value to convertCopyright © 2016–2019 The AuthMe Team. All rights reserved.