Class ClassUtils
java.lang.Object
org.springframework.integration.util.ClassUtils
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Method
TheFunction.apply(Object)
method object.static final Method
Theorg.springframework.integration.core.GenericHandler#handle(Object, Map)
method object.static final Class
<?> Thekotlin.jvm.functions.Function0
class object.static final Method
Thekotlin.jvm.functions.Function0#invoke
method object.static final Class
<?> Thekotlin.jvm.functions.Function1
class object.static final Method
Theorg.springframework.integration.core.GenericSelector#accept(Object)
method object.static final Method
TheSupplier.get()
method object.static final Method
Theorg.springframework.integration.core.GenericTransformer#transform(Object)
method object. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Class
<?> findClosestMatch
(Class<?> type, Set<Class<?>> candidates, boolean failOnTie) static boolean
isKotlinFunction0
(Class<?> aClass) Check if class iskotlin.jvm.functions.Function0
.static boolean
isKotlinFunction1
(Class<?> aClass) Check if class iskotlin.jvm.functions.Function1
.static boolean
isKotlinUnit
(Class<?> aClass) Check if class iskotlin.Unit
.static boolean
Check if class is Java or Kotlin lambda.static boolean
Check if object is Java, Kotlin or Groovy lambda.static Class
<?> resolvePrimitiveType
(Class<?> clazz) Resolve the given class if it is a primitive wrapper class, returning the corresponding primitive type instead.
-
Field Details
-
FUNCTION_APPLY_METHOD
TheFunction.apply(Object)
method object. -
SUPPLIER_GET_METHOD
TheSupplier.get()
method object. -
SELECTOR_ACCEPT_METHOD
Theorg.springframework.integration.core.GenericSelector#accept(Object)
method object. -
TRANSFORMER_TRANSFORM_METHOD
Theorg.springframework.integration.core.GenericTransformer#transform(Object)
method object. -
HANDLER_HANDLE_METHOD
Theorg.springframework.integration.core.GenericHandler#handle(Object, Map)
method object. -
KOTLIN_FUNCTION_0_CLASS
Thekotlin.jvm.functions.Function0
class object. -
KOTLIN_FUNCTION_0_INVOKE_METHOD
Thekotlin.jvm.functions.Function0#invoke
method object. -
KOTLIN_FUNCTION_1_CLASS
Thekotlin.jvm.functions.Function1
class object.
-
-
Constructor Details
-
ClassUtils
public ClassUtils()
-
-
Method Details
-
findClosestMatch
-
resolvePrimitiveType
Resolve the given class if it is a primitive wrapper class, returning the corresponding primitive type instead.- Parameters:
clazz
- the wrapper class to check- Returns:
- the corresponding primitive if the clazz is a wrapper, otherwise null
-
isLambda
-
isLambda
-
isKotlinFunction0
-
isKotlinFunction1
-
isKotlinUnit
-