Class DateTimeFormatterConverter
java.lang.Object
com.github.joschi.jadconfig.jodatime.converters.DateTimeFormatterConverter
- All Implemented Interfaces:
Converter<org.joda.time.format.DateTimeFormatter>
public class DateTimeFormatterConverter
extends Object
implements Converter<org.joda.time.format.DateTimeFormatter>
Converter for type
DateTimeFormatter- Author:
- jschalanda
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.joda.time.format.DateTimeFormatterconvertFrom(String value) Returns aDateTimeFormatterinstance representing the specified pattern.convertTo(org.joda.time.format.DateTimeFormatter value) Returns an emptyStringsince getting the original pattern from aDateTimeFormatterisn't supported by Joda-Time.
-
Constructor Details
-
DateTimeFormatterConverter
public DateTimeFormatterConverter()
-
-
Method Details
-
convertFrom
Returns aDateTimeFormatterinstance representing the specified pattern.- Specified by:
convertFromin interfaceConverter<org.joda.time.format.DateTimeFormatter>- Parameters:
value- The configuration parameter'sStringvalue- Returns:
- A
DateTimeFormatterinstance representing the configuration parameter's value - See Also:
-
convertTo
Returns an emptyStringsince getting the original pattern from aDateTimeFormatterisn't supported by Joda-Time.
-