Package org.aksw.commons.util.convert
Class ConverterRegistryImpl
- java.lang.Object
-
- org.aksw.commons.util.convert.ConverterRegistryImpl
-
- All Implemented Interfaces:
ConverterRegistry
public class ConverterRegistryImpl extends Object implements ConverterRegistry
-
-
Field Summary
Fields Modifier and Type Field Description protected MemoizedBiFunction<Class<?>,Class<?>,ConvertFunctionRaw>cachedFindprotected List<ConvertFunctionRaw>converters
-
Constructor Summary
Constructors Constructor Description ConverterRegistryImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected List<ConvertFunctionRaw>findMatches(Class<?> src, Class<?> tgt)protected ConvertFunctionRawfindUncached(Class<?> src, Class<?> tgt)ConvertFunctionRawgetConverter(Class<?> from, Class<?> to)voidregister(ConvertFunctionRaw converter)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.aksw.commons.util.convert.ConverterRegistry
register, register, register
-
-
-
-
Field Detail
-
converters
protected List<ConvertFunctionRaw> converters
-
cachedFind
protected MemoizedBiFunction<Class<?>,Class<?>,ConvertFunctionRaw> cachedFind
-
-
Method Detail
-
register
public void register(ConvertFunctionRaw converter)
- Specified by:
registerin interfaceConverterRegistry
-
findUncached
protected ConvertFunctionRaw findUncached(Class<?> src, Class<?> tgt)
-
findMatches
protected List<ConvertFunctionRaw> findMatches(Class<?> src, Class<?> tgt)
-
getConverter
public ConvertFunctionRaw getConverter(Class<?> from, Class<?> to)
- Specified by:
getConverterin interfaceConverterRegistry
-
-