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,
ConvertErrorRecorder errorRecorder)
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, ConvertErrorRecorder errorRecorder)
PropertyTypeconvert in interface PropertyType<B>object - the object to converterrorRecorder - error recorder to register errors even if a valid value is returnedpublic Object toExportValue(B value)
PropertyTypePropertyType.convert(java.lang.Object, ch.jalu.configme.properties.convertresult.ConvertErrorRecorder).)toExportValue in interface PropertyType<B>value - the value to convertCopyright © 2016–2021 The AuthMe Team. All rights reserved.