Class AnnotationUtils

java.lang.Object
org.apache.juneau.internal.AnnotationUtils

public class AnnotationUtils extends Object
Annotation utilities.
See Also:
  • Constructor Details

  • Method Details

    • equals

      public static boolean equals(Annotation a1, Annotation a2)
      Checks if two annotations are equal using the criteria for equality presented in the Annotation.equals(Object) API docs.
      Parameters:
      a1 - the first Annotation to compare, null returns false unless both are null
      a2 - the second Annotation to compare, null returns false unless both are null
      Returns:
      true if the two annotations are equal or both null
    • hashCode

      public static int hashCode(Annotation a)
      Generate a hash code for the given annotation using the algorithm presented in the Annotation.hashCode() API docs.
      Parameters:
      a - the Annotation for a hash code calculation is desired, not null
      Returns:
      the calculated hash code
      Throws:
      RuntimeException - if an Exception is encountered during annotation member access
      IllegalStateException - if an annotation method invocation returns null