fieldannotation.java

来自「pojo的mvc框架」· Java 代码 · 共 44 行

JAVA
44
字号
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 + =
减小字号Ctrl + -
显示快捷键?