public class ParameterUtils extends Object
Constructor and Description |
---|
ParameterUtils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
parametersCompatible(Parameter[] source,
Parameter[] target)
Checks if two parameter arrays are type-compatible.
|
static boolean |
parametersEqual(Parameter[] a,
Parameter[] b) |
static boolean |
parametersEqualWithWrapperType(Parameter[] a,
Parameter[] b) |
public static boolean parametersEqualWithWrapperType(Parameter[] a, Parameter[] b)
public static boolean parametersCompatible(Parameter[] source, Parameter[] target)
targetParameter.getType().getTypeClass().isAssignableFrom(sourceParameter.getType().getTypeClass())
source
- source parameterstarget
- target parameters