io.github.sporklibrary.reflection.AnnotatedField Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spork Show documentation
Show all versions of spork Show documentation
Annotation binding library
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;
}
}