blob: 8eff6fd27a71b37b364fc612db963f4446eefd10 [file] [log] [blame]
package org.junit.runners.model;
import java.lang.annotation.Annotation;
/**
* A model element that may have annotations.
*
* @since 4.12
*/
public interface Annotatable {
/**
* Returns the model elements' annotations.
*/
Annotation[] getAnnotations();
/**
* Returns the annotation on the model element of the given type, or @code{null}
*/
<T extends Annotation> T getAnnotation(Class<T> annotationType);
}