Class GuavaConverterFactory
java.lang.Object
com.github.joschi.jadconfig.guava.GuavaConverterFactory
- All Implemented Interfaces:
ConverterFactory
ConverterFactory for holding the Converter classes for Google Guava support.
Supported Converter types are:
CacheBuilderSpecthroughCacheBuilderSpecConverterHashCodethroughHashCodeConverterHostAndPortthroughHostAndPortConverterHostSpecifierthroughHostSpecifierConverterInternetDomainNamethroughInternetDomainNameConverterMediaTypethroughMediaTypeConverterUnsignedIntegerthroughUnsignedIntegerConverterUnsignedLongthroughUnsignedLongConverter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetConverter(Class<T> classType) Finds and returns aConverterfor the provided class type.
-
Constructor Details
-
GuavaConverterFactory
public GuavaConverterFactory()
-
-
Method Details
-
getConverter
Finds and returns aConverterfor the provided class type.- 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
-