Package com.github.joschi.jadconfig
Interface Converter<T>
- All Known Implementing Classes:
BigDecimalConverter,BigIntegerConverter,BooleanConverter,ByteConverter,CacheBuilderSpecConverter,CharsetConverter,ClassConverter,CurrencyConverter,DateTimeFormatterConverter,DateTimeZoneConverter,DaysConverter,DecimalFormatConverter,DoubleConverter,DurationConverter,DurationConverter,FileConverter,FloatConverter,HashCodeConverter,HostAndPortConverter,HostSpecifierConverter,HoursConverter,Inet4AddressConverter,Inet6AddressConverter,InetAddressConverter,InetSocketAddressConverter,IntegerConverter,InternetDomainNameConverter,IntervalConverter,LocaleConverter,LongConverter,MediaTypeConverter,MinutesConverter,MonthsConverter,NoConverter,PathConverter,PatternConverter,PeriodConverter,SecondsConverter,ShortConverter,SizeConverter,SizeUnitConverter,StringConverter,StringListConverter,StringSetConverter,StringSortedSetConverter,TimeUnitConverter,TimeZoneConverter,TrimmedStringListConverter,TrimmedStringSetConverter,TrimmedStringSortedSetConverter,UnsignedIntegerConverter,UnsignedLongConverter,URIConverter,URLConverter,UUIDConverter,WeeksConverter,YearsConverter
public interface Converter<T>
Interface for type converters.
A type converter will convert a configuration parameter's value (provided as
String) to another type
and vice versa.- Author:
- jschalanda
-
Method Summary
-
Method Details
-
convertFrom
Returns a typed instance representing the specifiedStringvalue.- Parameters:
value- The configuration parameter'sStringvalue- Returns:
- A typed instance representing the configuration parameter's value
-
convertTo
Returns aStringinstance representing the configuration parameter's value.- Parameters:
value- The configuration parameter's typed value- Returns:
- A
Stringinstance representing the configuration parameter's typed value
-