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

org.junit.runners.model.Annotatable Maven / Gradle / Ivy

There is a newer version: 2.12.15
Show newest version
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 getAnnotation(Class annotationType);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy