Package org.aksw.commons.util.convert
Class ConvertFunctionImpl<I,O>
- java.lang.Object
-
- org.aksw.commons.util.convert.ConvertFunctionBase
-
- org.aksw.commons.util.convert.ConvertFunctionImpl<I,O>
-
- All Implemented Interfaces:
ConvertFunction<I,O>,ConvertFunctionRaw
public class ConvertFunctionImpl<I,O> extends ConvertFunctionBase implements ConvertFunction<I,O>
-
-
Constructor Summary
Constructors Constructor Description ConvertFunctionImpl(Class<?> from, Class<?> to, java.util.function.Function<I,O> fn)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <I,O>
ConvertFunction<I,O>create(Class<?> src, Class<?> tgt, java.util.function.Function<I,O> srcToTgt)Create a converter from a lambdajava.util.function.Function<I,O>getFunction()-
Methods inherited from class org.aksw.commons.util.convert.ConvertFunctionBase
getFrom, getTo
-
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.ConvertFunction
convert, getRawFunction
-
Methods inherited from interface org.aksw.commons.util.convert.ConvertFunctionRaw
andThen, convertRaw, getFrom, getTo
-
-
-
-
Method Detail
-
getFunction
public java.util.function.Function<I,O> getFunction()
- Specified by:
getFunctionin interfaceConvertFunction<I,O>
-
create
public static <I,O> ConvertFunction<I,O> create(Class<?> src, Class<?> tgt, java.util.function.Function<I,O> srcToTgt)
Create a converter from a lambda
-
-