T
- the annotation typepublic abstract class AnnotationLiteral<T extends Annotation> extends Object implements Annotation, 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 {}
PayBy paybyCheque = new PayByQualifier() { public PaymentMethod value() { return CHEQUE; } };
Instance.select(Annotation...)
,
Event.select(Annotation...)
,
Serialized FormModifier | Constructor and Description |
---|---|
protected |
AnnotationLiteral() |
public Class<? extends Annotation> annotationType()
annotationType
in interface Annotation
public String toString()
toString
in interface Annotation
toString
in class Object
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 © 2018 JBoss by Red Hat. All rights reserved.