T - the annotation typepublic abstract class AnnotationLiteral<T extends java.lang.annotation.Annotation>
extends java.lang.Object
implements java.lang.annotation.Annotation, java.io.Serializable
Supports inline instantiation of annotation type instances.
An instance of an annotation type may be obtained by subclassing AnnotationLiteral.
public abstract class PayByQualifier
extends AnnotationLiteral<PayBy>
implements PayBy {}
An extension of AnnotationLiteral must do two things:
| Modifier | Constructor and Description |
|---|---|
protected |
AnnotationLiteral() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Class<? extends java.lang.annotation.Annotation> |
annotationType() |
boolean |
equals(java.lang.Object other) |
int |
hashCode() |
public java.lang.Class<? extends java.lang.annotation.Annotation> annotationType()
annotationType in interface java.lang.annotation.Annotationpublic boolean equals(java.lang.Object other)
equals in interface java.lang.annotation.Annotationequals in class java.lang.Objectpublic int hashCode()
hashCode in interface java.lang.annotation.AnnotationhashCode in class java.lang.ObjectCopyright © 2013 Oracle Corporation. All Rights Reserved.