Record Class TypeDef.TypeVariable
java.lang.Object
java.lang.Record
io.micronaut.sourcegen.model.TypeDef.TypeVariable
- Record Components:
name- The variable namebounds- The boundsnullable- The nullable
- All Implemented Interfaces:
TypeDef
- Enclosing interface:
TypeDef
-
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
ConstructorsConstructorDescriptionTypeVariable(String name) TypeVariable(String name, List<TypeDef> bounds) TypeVariable(String name, List<TypeDef> bounds, boolean nullable) Creates an instance of aTypeVariablerecord class. -
Method Summary
Modifier and TypeMethodDescriptionbounds()Returns the value of theboundsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanname()Returns the value of thenamerecord component.booleannullable()Returns the value of thenullablerecord component.static TypeDef.TypeVariableresolveTypeVariables(Map<String, TypeDef> resolvedTypeVariables) Resolve the type variables.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TypeVariable
-
TypeVariable
-
TypeVariable
-
-
Method Details
-
of
public static TypeDef.TypeVariable of(String name, io.micronaut.inject.ast.ClassElement classElement) -
resolveTypeVariables
Description copied from interface:TypeDefResolve the type variables.- Specified by:
resolveTypeVariablesin interfaceTypeDef- Parameters:
resolvedTypeVariables- The resolved type variables.- Returns:
- The resolved type or the previous.
-
makeNullable
- Specified by:
makeNullablein interfaceTypeDef- Returns:
- A new nullable type
-
isNullable
public boolean isNullable()- Specified by:
isNullablein interfaceTypeDef- Returns:
- Is nullable type
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
name
-
bounds
-
nullable
-