Record Class ClassTypeDef.AnnotatedClassTypeDef
java.lang.Object
java.lang.Record
io.micronaut.sourcegen.model.ClassTypeDef.AnnotatedClassTypeDef
- Record Components:
typeDef- The raw type definitionannotations- List of annotations to associate
- All Implemented Interfaces:
TypeDef, TypeDef.Annotated
- Enclosing interface:
ClassTypeDef
public static record ClassTypeDef.AnnotatedClassTypeDef(ClassTypeDef typeDef, List<AnnotationDef> annotations)
extends Record
implements TypeDef.Annotated
A combined type for representing a ClassTypeDef with annotations.
- Since:
- 1.4
- Author:
- Elif Kurtay
-
Nested Class Summary
Nested classes/interfaces inherited from interface TypeDef
TypeDef.Annotated, TypeDef.AnnotatedTypeDef, TypeDef.Array, TypeDef.Primitive, TypeDef.TypeVariable, TypeDef.Wildcard -
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionAnnotatedClassTypeDef(ClassTypeDef typeDef, List<AnnotationDef> annotations) Creates an instance of aAnnotatedClassTypeDefrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theannotationsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.typeDef()Returns the value of thetypeDefrecord component.Methods inherited from interface TypeDef
annotated, annotated, array, array, isArray, isNullable, isPrimitive, makeNullable, resolveTypeVariables
-
Constructor Details
-
AnnotatedClassTypeDef
Creates an instance of aAnnotatedClassTypeDefrecord class.- Parameters:
typeDef- the value for thetypeDefrecord componentannotations- the value for theannotationsrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
typeDef
-
annotations
Returns the value of theannotationsrecord component.- Returns:
- the value of the
annotationsrecord component
-