Class ReflectionUtils


  • public class ReflectionUtils
    extends Object
    Author:
    Kohsuke Kawaguchi
    • Constructor Detail

      • ReflectionUtils

        public ReflectionUtils()
    • Method Detail

      • getVmDefaultValueFor

        public static Object getVmDefaultValueFor​(Class<?> type)
        Given the primitive type, returns the VM default value for that type in a boxed form. For reference types, return null.
      • union

        public static Annotation[] union​(Annotation[] a,
                                         Annotation[] b)
        Merge two sets of annotations. If both contains the same annotation, the definition in 'b' overrides the definition in 'a' and shows up in the result