📄 fieldannotation.java
字号:
package xyz.frame.component;import java.lang.annotation.Annotation;import java.lang.reflect.Field;/** * Represents a field annotated. * * @author Guilherme Silveira * @param <T> * the type of annotation which shall be used */public class FieldAnnotation<T extends Annotation> { private T annotation; private Field field; /** * Simple constructor * @param annotation annotation * @param f field */ public FieldAnnotation(T annotation, Field f) { this.annotation = annotation; this.field = f; } /** * @return Returns the annotation. */ public T getAnnotation() { return this.annotation; } /** * @return Returns the field. */ public Field getField() { return this.field; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -