Package cc.carm.lib.easyannotation
Class AnnotatedMetaType<N extends java.lang.annotation.Annotation,V>
- java.lang.Object
-
- cc.carm.lib.easyannotation.AnnotatedMetaType<N,V>
-
- Type Parameters:
N
- The type of annotationV
- 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)
-
-
-
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)
-
get
@Nullable public V get(@Nullable @Nullable java.lang.reflect.Field field)
-
get
@Nullable public V get(@Nullable @Nullable java.lang.Class<?> clazz)
-
-