Package org.aksw.commons.util.convert
Class ConvertFunctionRawImpl
- java.lang.Object
-
- org.aksw.commons.util.convert.ConvertFunctionRawImpl
-
- All Implemented Interfaces:
ConvertFunctionRaw
public class ConvertFunctionRawImpl extends Object implements ConvertFunctionRaw
-
-
Constructor Summary
Constructors Constructor Description ConvertFunctionRawImpl(Class<?> from, Class<?> to, java.util.function.Function<Object,Object> fn)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <I,O>
ConvertFunctionRawcreate(Class<I> src, Class<O> tgt, java.util.function.Function<? super I,? extends O> srcToTgt)Create a converter from a lambdastatic ConvertFunctionRawcreate(Method method)Create a converter from a method that takes a single argument and returns a non-void typestatic ConvertFunctionRawcreate(Method method, Object obj)Create a converter from a method that takes a single argument and returns a non-void typeClass<?>getFrom()java.util.function.Function<Object,Object>getRawFunction()Class<?>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.ConvertFunctionRaw
andThen, convertRaw
-
-
-
-
Method Detail
-
getFrom
public Class<?> getFrom()
- Specified by:
getFromin interfaceConvertFunctionRaw
-
getTo
public Class<?> getTo()
- Specified by:
getToin interfaceConvertFunctionRaw
-
getRawFunction
public java.util.function.Function<Object,Object> getRawFunction()
- Specified by:
getRawFunctionin interfaceConvertFunctionRaw
-
create
public static <I,O> ConvertFunctionRaw create(Class<I> src, Class<O> tgt, java.util.function.Function<? super I,? extends O> srcToTgt)
Create a converter from a lambda
-
create
public static ConvertFunctionRaw create(Method method)
Create a converter from a method that takes a single argument and returns a non-void type
-
create
public static ConvertFunctionRaw create(Method method, Object obj)
Create a converter from a method that takes a single argument and returns a non-void type
-
-