Class PsaRstApiMapEntry<T extends java.lang.annotation.Annotation>

  • Type Parameters:
    T - annotation type
    Direct Known Subclasses:
    PsaRstApiMapFld.MapEntry

    public class PsaRstApiMapEntry<T extends java.lang.annotation.Annotation>
    extends java.lang.Object
    Annotation mapping entry
    Since:
    25.07.2023
    Author:
    weiland
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static <T extends java.lang.annotation.Annotation>
      java.util.List<PsaRstApiMapEntry<T>>
      get​(java.lang.Class<?> clazz, java.lang.Class<T> annotation_clazz)
      get the component mapping defined by annotation
      T getAnnotation()
      get the annotation
      java.lang.reflect.Field getClassField()
      get the class field
      java.lang.String toString()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • get

        public static <T extends java.lang.annotation.Annotation> java.util.List<PsaRstApiMapEntry<T>> get​(java.lang.Class<?> clazz,
                                                                                                           java.lang.Class<T> annotation_clazz)
        get the component mapping defined by annotation
        Type Parameters:
        T - type of the annotation
        Parameters:
        clazz - class to analyze
        annotation_clazz - class of the annotation
        Returns:
        list of component mapping
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
        See Also:
        Object.toString()
      • getClassField

        public java.lang.reflect.Field getClassField()
        get the class field
        Returns:
        field
      • getAnnotation

        public T getAnnotation()
        get the annotation
        Returns:
        annotation