Class ParamUtil


  • public abstract class ParamUtil
    extends Object
    • Constructor Detail

      • ParamUtil

        public ParamUtil()
    • Method Detail

      • getDefaultDgruments

        public static Object[] getDefaultDgruments​(Constructor<?> _method)
      • paramClasses

        public static Class<?>[] paramClasses​(Object... _objects)
      • isValidParam

        public static boolean isValidParam​(Method _method,
                                           Object[] _agruments)
      • isEqualParam

        public static boolean isEqualParam​(Type[] _params,
                                           Type... _agruments)
      • isEqualParam

        public static boolean isEqualParam​(Type[] _params,
                                           Object... _agruments)
      • isPrimitiveEq

        public static boolean isPrimitiveEq​(Class<?> params,
                                            Class<?> agr)
      • isEqualParam

        public static boolean isEqualParam​(Class<?> params,
                                           Class<?> agr)
      • isValidParam

        public static boolean isValidParam​(Constructor<?> _method,
                                           Object... _agruments)
      • isEqualTypes

        public static boolean isEqualTypes​(Type[] _params,
                                           Type[] _agruments)
      • isAssignable

        public static boolean isAssignable​(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.
        Parameters:
        lhsType - the target type
        rhsType - the value type that should be assigned to the target type
        Returns:
        true if rhs is assignable to lhs
      • isAssignableBound

        public static boolean isAssignableBound​(Type lhsType,
                                                Type rhsType)