public interface

Annotation

java.lang.annotation.Annotation
Known Indirect Subclasses

Class Overview

A mirror of java.lang.Annotation.

Summary

Public Methods
abstract Class<? extends Annotation> annotationType()
Returns the annotation type 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, as defined below:
abstract String toString()
Returns a string representation of this annotation.

Public Methods

public abstract Class<? extends Annotation> annotationType ()

Returns the annotation type of this annotation.

public abstract boolean equals (Object obj)

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

Parameters
obj the reference object with which to compare.
Returns
  • true if this object is the same as the obj argument; false otherwise.

public abstract int hashCode ()

Returns the hash code of this annotation, as defined below:

Returns
  • a hash code value for this object.

public abstract String toString ()

Returns a string representation of this annotation.

Returns
  • a string representation of the object.