Class ReflectionUtil


  • public class ReflectionUtil
    extends Object
    Utilities for working with reflection.
    • Constructor Detail

      • ReflectionUtil

        public ReflectionUtil()
    • Method Detail

      • getSetter

        public static String getSetter​(String s)
        This new method 'slightly' outperforms the old method, it was essentially a perfect example of me wasting my time and a premature optimization. But what the hell...
        Parameters:
        s - -
        Returns:
        String
      • getIsGetter

        public static String getIsGetter​(String s)
      • getPropertyFromAccessor

        public static String getPropertyFromAccessor​(String s)
      • toNonPrimitiveType

        public static Class<?> toNonPrimitiveType​(Class<?> c)
      • toNonPrimitiveArray

        public static Class<?> toNonPrimitiveArray​(Class<?> c)
      • toPrimitiveArrayType

        public static Class<?> toPrimitiveArrayType​(Class<?> c)
      • isAssignableFrom

        public static boolean isAssignableFrom​(Class<?> from,
                                               Class<?> to)