Class AnnotatedMetaType<N extends java.lang.annotation.Annotation,​V>

  • Type Parameters:
    N - The type of annotation
    V - The type of value

    public abstract class AnnotatedMetaType<N extends java.lang.annotation.Annotation,​V>
    extends java.lang.Object
    The Annotated meta type.
    Version:
    1.0.0
    Author:
    CarmJos
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.Class<N> annotationClass  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected AnnotatedMetaType​(@NotNull java.lang.Class<N> annotationClass)  
    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      V get​(@Nullable java.lang.Class<?> clazz)  
      V get​(@Nullable java.lang.reflect.Field field)  
      V get​(N annotation)  
      abstract V getValue​(N annotation)  
      static <T extends java.lang.annotation.Annotation,​E>
      AnnotatedMetaType<T,​E>
      of​(@NotNull java.lang.Class<T> annotationType, @NotNull java.util.function.Function<T,​E> function)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • annotationClass

        protected final java.lang.Class<N extends java.lang.annotation.Annotation> annotationClass
    • Constructor Detail

      • AnnotatedMetaType

        protected AnnotatedMetaType​(@NotNull
                                    @NotNull java.lang.Class<N> annotationClass)
    • Method Detail

      • of

        public static <T extends java.lang.annotation.Annotation,​E> AnnotatedMetaType<T,​E> of​(@NotNull
                                                                                                          @NotNull java.lang.Class<T> annotationType,
                                                                                                          @NotNull
                                                                                                          @NotNull java.util.function.Function<T,​E> function)
      • getValue

        @Nullable
        public abstract V getValue​(@NotNull
                                   N annotation)
      • get

        @Nullable
        public V get​(@Nullable
                     @Nullable java.lang.reflect.Field field)
      • get

        @Nullable
        public V get​(@Nullable
                     @Nullable java.lang.Class<?> clazz)
      • get

        @Nullable
        public V get​(@Nullable
                     N annotation)