English | Site Directory

Android - An Open Handset Alliance Project

java.lang.annotation
public interface

java.lang.annotation.Annotation

java.lang.annotation.Annotation

The interface implemented by all annotations. This interface is NOT an annotation itself and any interface that extends this one is NOT an annotation either.

Known Indirect Subclasses

Summary

Public Methods

        Class  annotationType()

Returns the type of this annotation.

        boolean  equals(Object obj)

Determines whether or not this annotation is equivalent to the annotation passed.

        int  hashCode()

Returns the hash value of this annotation.

        String  toString()

Returns a String representation of this annotation.

Details

Public Methods

public Class annotationType()

Returns the type of this annotation.

Returns

  • A Class instance.

public boolean equals(Object obj)

Determines whether or not this annotation is equivalent to the annotation passed.

Parameters

obj The object to compare to.

Returns

  • true if obj is equal to this, otherwise false.

public int hashCode()

Returns the hash value of this annotation.

Returns

  • The hash value.

public String toString()

Returns a String representation of this annotation.

Returns

  • The String that represents this annotation.
Build m5-rc15g - 14 May 2008 12:50