Record Class OutputObjectDef
java.lang.Object
java.lang.Record
io.micronaut.inject.processing.definition.OutputObjectDef
- Record Components:
objectDef- The generated object definitionserviceClass- The service to be registeredoriginatingElements- The originating elements
public record OutputObjectDef(io.micronaut.sourcegen.model.ObjectDef objectDef, @Nullable Class<?> serviceClass, OriginatingElements originatingElements)
extends Record
Aggregates the generated
ObjectDef together with service metadata.- Since:
- 5.1.0
- Author:
- Denis Stepanov
-
Constructor Summary
ConstructorsConstructorDescriptionOutputObjectDef(io.micronaut.sourcegen.model.ObjectDef objectDef, @Nullable Class<?> serviceClass, OriginatingElements originatingElements) Creates an instance of aOutputObjectDefrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.io.micronaut.sourcegen.model.ObjectDefReturns the value of theobjectDefrecord component.Returns the value of theoriginatingElementsrecord component.@Nullable Class<?> Returns the value of theserviceClassrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
OutputObjectDef
public OutputObjectDef(io.micronaut.sourcegen.model.ObjectDef objectDef, @Nullable Class<?> serviceClass, OriginatingElements originatingElements) Creates an instance of aOutputObjectDefrecord class.- Parameters:
objectDef- the value for theobjectDefrecord componentserviceClass- the value for theserviceClassrecord componentoriginatingElements- the value for theoriginatingElementsrecord 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). -
objectDef
-
serviceClass
Returns the value of theserviceClassrecord component.- Returns:
- the value of the
serviceClassrecord component
-
originatingElements
Returns the value of theoriginatingElementsrecord component.- Returns:
- the value of the
originatingElementsrecord component
-