Class MethodUtils


  • public class MethodUtils
    extends java.lang.Object
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static interface  MethodUtils.NullType  
    • Constructor Summary

      Constructors 
      Constructor Description
      MethodUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean areBoxingCompatible​(java.lang.Class<?> c1, java.lang.Class<?> c2)  
      static java.lang.Class<?> boxPrimitive​(java.lang.Class cls)  
      static java.lang.reflect.Type boxTypePrimitive​(java.lang.reflect.Type type)  
      static java.lang.reflect.Method findMethod​(java.lang.Class<?> clazz, java.lang.String methodName, java.lang.Class[] argsType)  
      static java.util.Optional<java.lang.reflect.Method> getMethod​(java.lang.Class<?> clazz, java.lang.String name, java.lang.Class<?>... parameterTypes)  
      static boolean isAssignableFrom​(java.lang.Class<?> from, java.lang.Class<?> to)  
      static boolean isOverride​(java.lang.reflect.Method oldMethod, java.lang.reflect.Method newMethod)  
      static java.lang.Class unboxPrimitive​(java.lang.Class cls)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MethodUtils

        public MethodUtils()
    • Method Detail

      • findMethod

        public static java.lang.reflect.Method findMethod​(java.lang.Class<?> clazz,
                                                          java.lang.String methodName,
                                                          java.lang.Class[] argsType)
      • getMethod

        public static java.util.Optional<java.lang.reflect.Method> getMethod​(java.lang.Class<?> clazz,
                                                                             java.lang.String name,
                                                                             java.lang.Class<?>... parameterTypes)
      • boxTypePrimitive

        public static java.lang.reflect.Type boxTypePrimitive​(java.lang.reflect.Type type)
      • boxPrimitive

        public static java.lang.Class<?> boxPrimitive​(java.lang.Class cls)
      • unboxPrimitive

        public static java.lang.Class unboxPrimitive​(java.lang.Class cls)
      • isAssignableFrom

        public static boolean isAssignableFrom​(java.lang.Class<?> from,
                                               java.lang.Class<?> to)
      • areBoxingCompatible

        public static boolean areBoxingCompatible​(java.lang.Class<?> c1,
                                                  java.lang.Class<?> c2)
      • isOverride

        public static boolean isOverride​(java.lang.reflect.Method oldMethod,
                                         java.lang.reflect.Method newMethod)