Package jakarta.enterprise.inject
Class Alternative.Literal
java.lang.Object
jakarta.enterprise.util.AnnotationLiteral<Alternative>
jakarta.enterprise.inject.Alternative.Literal
- All Implemented Interfaces:
Annotation
- Enclosing class:
- Alternative
public static final class Alternative.Literal
extends AnnotationLiteral<Alternative>
implements Alternative
Supports inline instantiation of the
Alternative annotation.- Since:
- 2.0
- Author:
- Martin Kouba
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class jakarta.enterprise.inject.Alternative
Alternative.Literal -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
INSTANCE
Default Alternative literal
-
-
Constructor Details
-
Literal
public Literal()
-
-
Method Details
-
annotationType
- Specified by:
annotationTypein interfaceAnnotation- Overrides:
annotationTypein classAnnotationLiteral<Alternative>
-
equals
- Specified by:
equalsin interfaceAnnotation- Overrides:
equalsin classAnnotationLiteral<Alternative>
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceAnnotation- Overrides:
hashCodein classAnnotationLiteral<Alternative>
-
toString
- Specified by:
toStringin interfaceAnnotation- Overrides:
toStringin classAnnotationLiteral<Alternative>
-