public class TypeUtil extends Object
| Constructor and Description |
|---|
TypeUtil() |
| Modifier and Type | Method and Description |
|---|---|
static Class<?>[] |
getClassesFromObjects(Object[] parameterObjects)
get classes of parameter objects
|
static Constructor<?> |
getConstructorByNameAndParameterTypes(Constructor<?>[] availableConstructors,
Class<?>[] parameterTypes)
get constructor by parameter matching
|
static Method |
getMethodByNameAndParameterTypes(Method[] availableMethods,
String methodName,
Class<?>[] parameterTypes)
get method by name and parameter matching
|
public static Class<?>[] getClassesFromObjects(Object[] parameterObjects)
parameterObjects - objectspublic static Constructor<?> getConstructorByNameAndParameterTypes(Constructor<?>[] availableConstructors, Class<?>[] parameterTypes)
availableConstructors - available constructorsparameterTypes - class to look forpublic static Method getMethodByNameAndParameterTypes(Method[] availableMethods, String methodName, Class<?>[] parameterTypes)
availableMethods - available methodsmethodName - method to look forparameterTypes - class to look forCopyright © 2021. All rights reserved.