T
- the annotation typepublic abstract class AnnotationLiteral<T extends Annotation> extends Object implements Annotation, Serializable
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 |
---|---|
Class<? extends Annotation> |
annotationType()
Method returns the type of the annotation literal.
|
boolean |
equals(Object other) |
int |
hashCode() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
toString
public Class<? extends Annotation> annotationType()
annotationType
in interface Annotation
public boolean equals(Object other)
equals
in interface Annotation
equals
in class Object
public int hashCode()
hashCode
in interface Annotation
hashCode
in class Object
Copyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.