Class TypeQualifierAnnotation


  • public class TypeQualifierAnnotation
    extends java.lang.Object
    A type qualifier applied to a field, method, parameter, or return value.
    Author:
    Bill Pugh, David Hovemeyer
    • Field Detail

      • when

        public final javax.annotation.meta.When when
    • Method Detail

      • clearInstance

        public static void clearInstance()
      • combineReturnTypeAnnotations

        @CheckForNull
        public static TypeQualifierAnnotation combineReturnTypeAnnotations​(TypeQualifierAnnotation a,
                                                                           TypeQualifierAnnotation b)
        Combine return type annotations.
        Parameters:
        a - a TypeQualifierAnnotation used on a return value
        b - another TypeQualifierAnnotation used on a return value
        Returns:
        combined return type annotation that is at least as narrow as both a or b, or null if no such TypeQualifierAnnotation exists
      • combineParameterAnnotations

        @Nonnull
        public static TypeQualifierAnnotation combineParameterAnnotations​(TypeQualifierAnnotation a,
                                                                          TypeQualifierAnnotation b)
        Parameters:
        a - a TypeQualifierAnnotation used on a method parameter
        b - another TypeQualifierAnnotation used on a method parameter
        Returns:
        combined parameter annotation that is at least as wide as both a and b
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object