Package jakarta.enterprise.inject
Class Typed.Literal
- All Implemented Interfaces:
Annotation
- Enclosing class:
- Typed
Supports inline instantiation of the
Typed annotation.- Since:
- 2.0
- Author:
- Martin Kouba
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class jakarta.enterprise.inject.Typed
Typed.Literal -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionClass<? extends Annotation>booleaninthashCode()static Typed.LiteralObtain the Typed literal for the provided bean typestoString()Class<?>[]value()
-
Field Details
-
INSTANCE
Default Typed literal
-
-
Method Details
-
of
Obtain the Typed literal for the provided bean types- Parameters:
value- the classes corresponding to the bean types of the bean- Returns:
- a new Literal value for the provided classes
-
value
- Returns:
- the classes corresponding to the bean types of the bean
-
annotationType
- Specified by:
annotationTypein interfaceAnnotation- Overrides:
annotationTypein classAnnotationLiteral<Typed>
-
equals
- Specified by:
equalsin interfaceAnnotation- Overrides:
equalsin classAnnotationLiteral<Typed>
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceAnnotation- Overrides:
hashCodein classAnnotationLiteral<Typed>
-
toString
- Specified by:
toStringin interfaceAnnotation- Overrides:
toStringin classAnnotationLiteral<Typed>
-