Class AnnotationCollector.TwoAnnotations

    • Constructor Summary

      Constructors 
      Constructor Description
      TwoAnnotations​(java.lang.Class<?> type1, java.lang.annotation.Annotation value1, java.lang.Class<?> type2, java.lang.annotation.Annotation value2)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <A extends java.lang.annotation.Annotation>
      A
      get​(java.lang.Class<A> cls)
      Main access method used to find value for given annotation.
      boolean has​(java.lang.Class<?> cls)  
      boolean hasOneOf​(java.lang.Class<? extends java.lang.annotation.Annotation>[] annoClasses)  
      int size()
      Returns number of annotation entries in this collection.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TwoAnnotations

        public TwoAnnotations​(java.lang.Class<?> type1,
                              java.lang.annotation.Annotation value1,
                              java.lang.Class<?> type2,
                              java.lang.annotation.Annotation value2)
    • Method Detail

      • get

        public <A extends java.lang.annotation.Annotation> A get​(java.lang.Class<A> cls)
        Description copied from interface: Annotations
        Main access method used to find value for given annotation.
        Specified by:
        get in interface Annotations
      • has

        public boolean has​(java.lang.Class<?> cls)
        Specified by:
        has in interface Annotations
      • hasOneOf

        public boolean hasOneOf​(java.lang.Class<? extends java.lang.annotation.Annotation>[] annoClasses)
        Specified by:
        hasOneOf in interface Annotations
      • size

        public int size()
        Description copied from interface: Annotations
        Returns number of annotation entries in this collection.
        Specified by:
        size in interface Annotations