Class FunctionType
- java.lang.Object
-
- org.springframework.cloud.function.context.FunctionType
-
public class FunctionType extends Object
- Author:
- Dave Syer, Oleg Zhurakousky
-
-
Field Summary
Fields Modifier and Type Field Description static FunctionTypeUNCLASSIFIEDUnclassified function types.
-
Constructor Summary
Constructors Constructor Description FunctionType(Type type)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FunctionTypecompose(FunctionType input, FunctionType output)static FunctionTypeconsumer(Class<?> input)booleanequals(Object obj)static FunctionTypefrom(Class<?> input)Class<?>getInputType()Class<?>getInputWrapper()Class<?>getOutputType()Class<?>getOutputWrapper()TypegetType()inthashCode()booleanisMessage()booleanisWrapper()static booleanisWrapper(Type type)FunctionTypemessage()static FunctionTypeof(Type function)static FunctionTypesupplier(Class<?> input)FunctionTypeto(Class<?> output)StringtoString()FunctionTypewrap(Class<?> wrapper)FunctionTypewrap(Class<?> input, Class<?> output)
-
-
-
Field Detail
-
UNCLASSIFIED
public static FunctionType UNCLASSIFIED
Unclassified function types.
-
-
Constructor Detail
-
FunctionType
public FunctionType(Type type)
-
-
Method Detail
-
isWrapper
public static boolean isWrapper(Type type)
-
of
public static FunctionType of(Type function)
-
from
public static FunctionType from(Class<?> input)
-
supplier
public static FunctionType supplier(Class<?> input)
-
consumer
public static FunctionType consumer(Class<?> input)
-
compose
public static FunctionType compose(FunctionType input, FunctionType output)
-
getType
public Type getType()
-
getInputWrapper
public Class<?> getInputWrapper()
-
getOutputWrapper
public Class<?> getOutputWrapper()
-
getInputType
public Class<?> getInputType()
-
getOutputType
public Class<?> getOutputType()
-
isMessage
public boolean isMessage()
-
isWrapper
public boolean isWrapper()
-
to
public FunctionType to(Class<?> output)
-
message
public FunctionType message()
-
wrap
public FunctionType wrap(Class<?> input, Class<?> output)
-
wrap
public FunctionType wrap(Class<?> wrapper)
-
-