public abstract class ClassUtils extends Object
Modifier and Type | Field and Description |
---|---|
static Method |
FUNCTION_APPLY_METHOD
The
Function.apply(Object) method object. |
static Method |
HANDLER_HANDLE_METHOD
The
org.springframework.integration.handler.GenericHandler#handle(Object, Map) method object. |
static Method |
SELECTOR_ACCEPT_METHOD
The
org.springframework.integration.core.GenericSelector#accept(Object) method object. |
static Method |
TRANSFORMER_TRANSFORM_METHOD
The
org.springframework.integration.transformer.GenericTransformer#transform(Object) method object. |
Constructor and Description |
---|
ClassUtils() |
Modifier and Type | Method and Description |
---|---|
static Class<?> |
findClosestMatch(Class<?> type,
Set<Class<?>> candidates,
boolean failOnTie) |
static Class<?> |
resolvePrimitiveType(Class<?> clazz)
Resolve the given class if it is a primitive wrapper class,
returning the corresponding primitive type instead.
|
public static final Method FUNCTION_APPLY_METHOD
Function.apply(Object)
method object.public static final Method SELECTOR_ACCEPT_METHOD
org.springframework.integration.core.GenericSelector#accept(Object)
method object.public static final Method TRANSFORMER_TRANSFORM_METHOD
org.springframework.integration.transformer.GenericTransformer#transform(Object)
method object.public static final Method HANDLER_HANDLE_METHOD
org.springframework.integration.handler.GenericHandler#handle(Object, Map)
method object.public static Class<?> findClosestMatch(Class<?> type, Set<Class<?>> candidates, boolean failOnTie)
public static Class<?> resolvePrimitiveType(Class<?> clazz)
clazz
- the wrapper class to check