public class DefaultConverterFactory extends Object implements ConverterFactory
ConverterFactory for holding the default Converter classes.
Supported Converter types are:
String through StringConverterByte and byte through ByteConverterShort and short through ByteConverterInteger and int through ByteConverterLong and long through ByteConverterBoolean and boolean through ByteConverterFloat and float through ByteConverterDouble and double through ByteConverterURI through URIConverterURL through URLConverterFile through FileConverterBigDecimal through BigDecimalConverterBigInteger through BigIntegerConverterCharset through CharsetConverterCurrency through CurrencyConverterDecimalFormat through DecimalFormatConverterInetAddress through InetAddressConverterInet4Address through Inet4AddressConverterInet6Address through Inet6AddressConverterInetSocketAddress through InetSocketAddressConverterLocale through LocaleConverterPattern through PatternConverterTimeZone through TimeZoneConverterUUID through UUIDConverterDuration through DurationConverterSize through SizeConverterSizeUnit through SizeUnitConverterTimeUnit through TimeUnitConverterClass through ClassConverter| Constructor and Description |
|---|
DefaultConverterFactory() |
| Modifier and Type | Method and Description |
|---|---|
<T> Class<? extends Converter<T>> |
getConverter(Class<T> classType)
Finds and returns a
Converter for the provided classType. |
public <T> Class<? extends Converter<T>> getConverter(Class<T> classType)
Converter for the provided classType.getConverter in interface ConverterFactoryT - Type of the Converter to getclassType - The class type for which to find and return a ConverterConverter for the requested class typeCopyright © 2022. All rights reserved.