public abstract class ClassUtils
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.reflect.Method |
FUNCTION_APPLY_METHOD
The
Function.apply(Object) method object. |
static java.lang.reflect.Method |
HANDLER_HANDLE_METHOD
The
org.springframework.integration.handler.GenericHandler#handle(Object, Map) method object. |
static java.lang.Class<?> |
KOTLIN_FUNCTION_0_CLASS
The
kotlin.jvm.functions.Function0 class object. |
static java.lang.reflect.Method |
KOTLIN_FUNCTION_0_INVOKE_METHOD
The
kotlin.jvm.functions.Function0#invoke method object. |
static java.lang.Class<?> |
KOTLIN_FUNCTION_1_CLASS
The
kotlin.jvm.functions.Function1 class object. |
static java.lang.Class<?> |
KOTLIN_UNIT_CLASS
The
kotlin.Unit class object. |
static java.lang.reflect.Method |
SELECTOR_ACCEPT_METHOD
The
org.springframework.integration.core.GenericSelector#accept(Object) method object. |
static java.lang.reflect.Method |
SUPPLIER_GET_METHOD
The
Supplier.get() method object. |
static java.lang.reflect.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 java.lang.Class<?> |
findClosestMatch(java.lang.Class<?> type,
java.util.Set<java.lang.Class<?>> candidates,
boolean failOnTie) |
static boolean |
isKotlinFaction0(java.lang.Class<?> aClass)
Check if class is
kotlin.jvm.functions.Function0. |
static boolean |
isKotlinFaction1(java.lang.Class<?> aClass)
Check if class is
kotlin.jvm.functions.Function1. |
static boolean |
isKotlinUnit(java.lang.Class<?> aClass)
Check if class is
kotlin.Unit. |
static boolean |
isLambda(java.lang.Class<?> aClass)
Check if class is Java lambda.
|
static java.lang.Class<?> |
resolvePrimitiveType(java.lang.Class<?> clazz)
Resolve the given class if it is a primitive wrapper class,
returning the corresponding primitive type instead.
|
public static final java.lang.reflect.Method FUNCTION_APPLY_METHOD
Function.apply(Object) method object.public static final java.lang.reflect.Method SUPPLIER_GET_METHOD
Supplier.get() method object.public static final java.lang.reflect.Method SELECTOR_ACCEPT_METHOD
org.springframework.integration.core.GenericSelector#accept(Object) method object.public static final java.lang.reflect.Method TRANSFORMER_TRANSFORM_METHOD
org.springframework.integration.transformer.GenericTransformer#transform(Object) method object.public static final java.lang.reflect.Method HANDLER_HANDLE_METHOD
org.springframework.integration.handler.GenericHandler#handle(Object, Map) method object.public static final java.lang.Class<?> KOTLIN_FUNCTION_0_CLASS
kotlin.jvm.functions.Function0 class object.public static final java.lang.reflect.Method KOTLIN_FUNCTION_0_INVOKE_METHOD
kotlin.jvm.functions.Function0#invoke method object.public static final java.lang.Class<?> KOTLIN_FUNCTION_1_CLASS
kotlin.jvm.functions.Function1 class object.public static final java.lang.Class<?> KOTLIN_UNIT_CLASS
kotlin.Unit class object.public static java.lang.Class<?> findClosestMatch(java.lang.Class<?> type,
java.util.Set<java.lang.Class<?>> candidates,
boolean failOnTie)
@Nullable public static java.lang.Class<?> resolvePrimitiveType(java.lang.Class<?> clazz)
clazz - the wrapper class to checkpublic static boolean isLambda(java.lang.Class<?> aClass)
aClass - the Class to check.public static boolean isKotlinFaction0(java.lang.Class<?> aClass)
kotlin.jvm.functions.Function0.aClass - the Class to check.kotlin.jvm.functions.Function0 implementation.public static boolean isKotlinFaction1(java.lang.Class<?> aClass)
kotlin.jvm.functions.Function1.aClass - the Class to check.kotlin.jvm.functions.Function1 implementation.public static boolean isKotlinUnit(java.lang.Class<?> aClass)
kotlin.Unit.aClass - the Class to check.kotlin.Unit implementation.