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 Class<?> |
KOTLIN_FUNCTION_0_CLASS
The
kotlin.jvm.functions.Function0 class object. |
static Method |
KOTLIN_FUNCTION_0_INVOKE_METHOD
The
kotlin.jvm.functions.Function0#invoke method object. |
static Class<?> |
KOTLIN_FUNCTION_1_CLASS
The
kotlin.jvm.functions.Function1 class object. |
static Method |
SELECTOR_ACCEPT_METHOD
The
org.springframework.integration.core.GenericSelector#accept(Object) method object. |
static Method |
SUPPLIER_GET_METHOD
The
Supplier.get() 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 boolean |
isKotlinFaction0(Class<?> aClass)
Check if class is
kotlin.jvm.functions.Function0. |
static boolean |
isKotlinFaction1(Class<?> aClass)
Check if class is
kotlin.jvm.functions.Function1. |
static boolean |
isLambda(Class<?> aClass)
Check if class is Java lambda.
|
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 SUPPLIER_GET_METHOD
Supplier.get() 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 final Class<?> KOTLIN_FUNCTION_0_CLASS
kotlin.jvm.functions.Function0 class object.public static final Method KOTLIN_FUNCTION_0_INVOKE_METHOD
kotlin.jvm.functions.Function0#invoke method object.public static final Class<?> KOTLIN_FUNCTION_1_CLASS
kotlin.jvm.functions.Function1 class object.public static Class<?> findClosestMatch(Class<?> type, Set<Class<?>> candidates, boolean failOnTie)
@Nullable public static Class<?> resolvePrimitiveType(Class<?> clazz)
clazz - the wrapper class to checkpublic static boolean isLambda(Class<?> aClass)
aClass - the Class to check.public static boolean isKotlinFaction0(Class<?> aClass)
kotlin.jvm.functions.Function0.aClass - the Class to check.kotlin.jvm.functions.Function0 implementation.