Package com.github.joschi.jadconfig
Class DefaultConverterFactory
java.lang.Object
com.github.joschi.jadconfig.DefaultConverterFactory
- All Implemented Interfaces:
ConverterFactory
ConverterFactory for holding the default Converter classes.
Supported Converter types are:
StringthroughStringConverterByteand byte throughByteConverterShortand short throughByteConverterIntegerand int throughByteConverterLongand long throughByteConverterBooleanand boolean throughByteConverterFloatand float throughByteConverterDoubleand double throughByteConverterURIthroughURIConverterURLthroughURLConverterFilethroughFileConverterBigDecimalthroughBigDecimalConverterBigIntegerthroughBigIntegerConverterCharsetthroughCharsetConverterCurrencythroughCurrencyConverterDecimalFormatthroughDecimalFormatConverterInetAddressthroughInetAddressConverterInet4AddressthroughInet4AddressConverterInet6AddressthroughInet6AddressConverterInetSocketAddressthroughInetSocketAddressConverterLocalethroughLocaleConverterPatternthroughPatternConverterTimeZonethroughTimeZoneConverterUUIDthroughUUIDConverterDurationthroughDurationConverterSizethroughSizeConverterSizeUnitthroughSizeUnitConverterTimeUnitthroughTimeUnitConverterClassthroughClassConverter
- Author:
- jschalanda
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetConverter(Class<T> classType) Finds and returns aConverterfor the provided classType.
-
Constructor Details
-
DefaultConverterFactory
public DefaultConverterFactory()
-
-
Method Details
-
getConverter
Finds and returns aConverterfor the provided classType.- Specified by:
getConverterin interfaceConverterFactory- Type Parameters:
T- Type of theConverterto get- Parameters:
classType- The class type for which to find and return aConverter- Returns:
- A
Converterfor the requested class type
-