Build 1.0_r1(from source)

java.lang.annotation
Interface Annotation

All Known Implementing Classes:
AnnotationDefault, Deprecated, Documented, EnclosingClass, EnclosingMethod, FlakyTest, Inherited, InnerClass, MemberClasses, Override, RemoteViews.RemoteView, Retention, SdkConstant, Signature, Smoke, Suppress, SuppressWarnings, Target, TestInfo, TestTarget, TestTargetClass, Throws, UiThreadTest, ViewDebug.ExportedProperty, ViewDebug.IntToString, Widget

public interface Annotation

Defines the interface implemented by all annotations. Note that the interface itself is not an annotation, and neither is an interface that simply extends this one. Only the compiler is able to create proper annotation types.

Since:
Android 1.0

Method Summary
 Class<? extends Annotation> 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 code of this annotation.
 String toString()
          Returns a String representation of this annotation.
 

Method Detail

annotationType

Class<? extends Annotation> annotationType()
Returns the type of this annotation.

Returns:
A Class instance representing the annotation type.
Since:
Android 1.0

equals

boolean equals(Object obj)
Determines whether or not this annotation is equivalent to the annotation passed. This is determined according to the following rules:

Overrides:
equals in class Object
Parameters:
obj - The object to compare to.
Returns:
true if obj is equal to this annotation, false otherwise.
Since:
Android 1.0
See Also:
Object.hashCode()

hashCode

int hashCode()
Returns the hash code of this annotation. The hash code is determined according to the following rules:

Overrides:
hashCode in class Object
Returns:
the hash code.
Since:
Android 1.0
See Also:
Object.equals(java.lang.Object)

toString

String toString()
Returns a String representation of this annotation. It is not strictly defined what the representation has to look like, but it usually consists of the name of the annotation, preceded by a "@". If the annotation contains field members, their names and values are also included in the result.

Overrides:
toString in class Object
Returns:
the String that represents this annotation.
Since:
Android 1.0

Build 1.0_r1(from source)

Please submit a feedback, bug or feature