Interface ParamUtil
public interface ParamUtil
-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic Object[]getDefaultDgruments(Constructor<?> constructor) static booleanisAssignable(Type lhsType, Type rhsType) Check if the right-hand side type may be assigned to the left-hand side type following the Java generics rules.static booleanisAssignableBound(Type lhsType, Type rhsType) static booleanisEqualParam(Class<?> params, Class<?> agr) static booleanisEqualParam(Type[] _params, Object... _agruments) static booleanisEqualParam(Type[] _params, Type... _agruments) static booleanisEqualTypes(Type[] _params, Type[] _agruments) static booleanisPrimitiveEq(Class<?> params, Class<?> agr) static booleanisValidParam(Constructor<?> _method, Object... _agruments) static booleanisValidParam(Method _method, Object[] _agruments) static Class<?>[]paramClasses(Object... _objects)
-
Method Details
-
paramClasses
-
isValidParam
-
isEqualParam
-
isEqualParam
-
isPrimitiveEq
-
isEqualParam
-
isValidParam
-
isEqualTypes
-
isAssignable
Check if the right-hand side type may be assigned to the left-hand side type following the Java generics rules.- Parameters:
lhsType- the target typerhsType- the value type that should be assigned to the target type- Returns:
- true if rhs is assignable to lhs
-
isAssignableBound
-
getDefaultDgruments
- Parameters:
constructor-- Returns:
-