Class ClassUtils
java.lang.Object
org.springframework.integration.util.ClassUtils
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final MethodTheFunction.apply(Object)method object.static final MethodTheorg.springframework.integration.core.GenericHandler#handle(Object, Map)method object.static final Class<?> Thekotlin.jvm.functions.Function0class object.static final MethodThekotlin.jvm.functions.Function0#invokemethod object.static final Class<?> Thekotlin.jvm.functions.Function1class object.static final MethodTheorg.springframework.integration.core.GenericSelector#accept(Object)method object.static final MethodTheSupplier.get()method object.static final MethodTheorg.springframework.integration.core.GenericTransformer#transform(Object)method object.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic Class<?> findClosestMatch(Class<?> type, Set<Class<?>> candidates, boolean failOnTie) static booleanisKotlinFunction0(Class<?> aClass) Check if class iskotlin.jvm.functions.Function0.static booleanisKotlinFunction1(Class<?> aClass) Check if class iskotlin.jvm.functions.Function1.static booleanisKotlinUnit(Class<?> aClass) Check if class iskotlin.Unit.static booleanCheck if class is Java or Kotlin lambda.static booleanCheck 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_METHODTheFunction.apply(Object)method object.
- 
SUPPLIER_GET_METHODTheSupplier.get()method object.
- 
SELECTOR_ACCEPT_METHODTheorg.springframework.integration.core.GenericSelector#accept(Object)method object.
- 
TRANSFORMER_TRANSFORM_METHODTheorg.springframework.integration.core.GenericTransformer#transform(Object)method object.
- 
HANDLER_HANDLE_METHODTheorg.springframework.integration.core.GenericHandler#handle(Object, Map)method object.
- 
KOTLIN_FUNCTION_0_CLASSThekotlin.jvm.functions.Function0class object.
- 
KOTLIN_FUNCTION_0_INVOKE_METHODThekotlin.jvm.functions.Function0#invokemethod object.
- 
KOTLIN_FUNCTION_1_CLASSThekotlin.jvm.functions.Function1class object.
 
- 
- 
Constructor Details- 
ClassUtilspublic ClassUtils()
 
- 
- 
Method Details- 
findClosestMatch
- 
resolvePrimitiveTypeResolve 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
 
-