Package org.aksw.commons.util.convert
Class ConvertFunctionRawImpl
java.lang.Object
org.aksw.commons.util.convert.ConvertFunctionRawImpl
- All Implemented Interfaces:
ConvertFunctionRaw
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <I,O> ConvertFunctionRaw Create a converter from a lambdastatic ConvertFunctionRawCreate a converter from a method that takes a single argument and returns a non-void typestatic ConvertFunctionRawCreate a converter from a method that takes a single argument and returns a non-void typeClass<?>getFrom()Class<?>getTo()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.aksw.commons.util.convert.ConvertFunctionRaw
andThen, convertRaw
-
Field Details
-
from
-
to
-
fn
-
-
Constructor Details
-
ConvertFunctionRawImpl
-
-
Method Details
-
getFrom
- Specified by:
getFromin interfaceConvertFunctionRaw
-
getTo
- Specified by:
getToin interfaceConvertFunctionRaw
-
getRawFunction
- Specified by:
getRawFunctionin interfaceConvertFunctionRaw
-
create
public static <I,O> ConvertFunctionRaw create(Class<I> src, Class<O> tgt, Function<? super I, ? extends O> srcToTgt) Create a converter from a lambda -
create
Create a converter from a method that takes a single argument and returns a non-void type -
create
Create a converter from a method that takes a single argument and returns a non-void type
-