T
- public abstract class EmptyAnnotationLiteral<T extends Annotation>
extends javax.enterprise.util.AnnotationLiteral<T>
Modifier | Constructor and Description |
---|---|
protected |
EmptyAnnotationLiteral() |
Modifier and Type | Method and Description |
---|---|
Class<? extends Annotation> |
annotationType()
Implemented for compatibility reasons with other cdi-api jar's.
|
boolean |
equals(Object other)
Just checks whether the 2 classes have the same annotationType.
|
int |
hashCode()
Implemented for performance reasons.
|
String |
toString() |
public String toString()
toString
in interface Annotation
toString
in class javax.enterprise.util.AnnotationLiteral<T extends Annotation>
public Class<? extends Annotation> annotationType()
annotationType
in interface Annotation
annotationType
in class javax.enterprise.util.AnnotationLiteral<T extends Annotation>
public int hashCode()
AnnotationLiteral.hashCode()
always does search for methods via reflection and only then returns 0.
Not very well performing ...hashCode
in interface Annotation
hashCode
in class javax.enterprise.util.AnnotationLiteral<T extends Annotation>
public boolean equals(Object other)
equals
in interface Annotation
equals
in class javax.enterprise.util.AnnotationLiteral<T extends Annotation>
Copyright © 2008–2020 The Apache Software Foundation. All rights reserved.