All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.sporklibrary.reflection.AnnotatedField Maven / Gradle / Ivy

There is a newer version: 3.2.0
Show newest version
package io.github.sporklibrary.reflection;

import java.lang.annotation.Annotation;
import java.lang.reflect.Field;

/**
 * A model that contains an {@link Annotation} and a {@link Field}
 * @param  the annotation type to store
 */
public class AnnotatedField
{
	private final AnnotationType annotation;

	private final Field field;

	public AnnotatedField(AnnotationType annotation, Field field)
	{
		this.annotation = annotation;
		this.field = field;
	}

	public AnnotationType getAnnotation()
	{
		return annotation;
	}

	public Field getField()
	{
		return field;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy