public class StringToPeriodConverter extends Object implements GenericConverter
Converter to convert from a String to a Period. Supports
Period.parse(CharSequence) as well a more readable form.PeriodUnitGenericConverter.ConvertiblePair| Constructor and Description |
|---|
StringToPeriodConverter() |
| Modifier and Type | Method and Description |
|---|---|
Object |
convert(Object source,
TypeDescriptor sourceType,
TypeDescriptor targetType) |
Set<GenericConverter.ConvertiblePair> |
getConvertibleTypes() |
public Set<GenericConverter.ConvertiblePair> getConvertibleTypes()
getConvertibleTypes in interface GenericConverterpublic Object convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType)
convert in interface GenericConverter