Class AnnotationMatcher


  • public final class AnnotationMatcher
    extends Object
    Describes annotations that make class members and their signatures nullable and non-nullable: their name, meaning, and score
    • Constructor Detail

      • AnnotationMatcher

        public AnnotationMatcher​(@Nonnull
                                 String name,
                                 boolean nullable,
                                 int score)
    • Method Detail

      • doesMakeNullable

        public boolean doesMakeNullable()
        Returns true if the annotation makes a member/signature nullable, false if non-nullable
      • getName

        public String getName()
        Returns the annotation name (e.g. javax.annotation.Nonnull)
      • getScore

        public int getScore()
        Returns a score that allows to compare the priority between annotations
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object