Added in API level 24

Repeatable

public abstract @interface Repeatable
implements Annotation

java.lang.annotation.Repeatable


The annotation interface java.lang.annotation.Repeatable is used to indicate that the annotation interface whose declaration it (meta-)annotates is repeatable. The value of @Repeatable indicates the containing annotation interface for the repeatable annotation interface.

Summary

Public methods

Class<? extends Annotation> value()

Indicates the containing annotation interface for the repeatable annotation interface.

Inherited methods

abstract Class<? extends Annotation> annotationType()

Returns the annotation interface of this annotation.

abstract boolean equals(Object obj)

Returns true if the specified object represents an annotation that is logically equivalent to this one.

abstract int hashCode()

Returns the hash code of this annotation.

abstract String toString()

Returns a string representation of this annotation.

Public methods

value

Added in API level 24
public Class<? extends Annotation> value ()

Indicates the containing annotation interface for the repeatable annotation interface.

Returns
Class<? extends Annotation> the containing annotation interface