Record Class MethodResult
java.lang.Object
java.lang.Record
io.micronaut.data.processor.visitors.finders.MethodResult
- Record Components:
resultType- The result typeisDto- Is DTOisRuntimeDtoConversion- Is DTO converted at the runtime
@Internal
public record MethodResult(io.micronaut.inject.ast.ClassElement resultType, boolean isDto, boolean isRuntimeDtoConversion)
extends Record
Method result.
-
Constructor Summary
ConstructorsConstructorDescriptionMethodResult(io.micronaut.inject.ast.ClassElement resultType, boolean isDto, boolean isRuntimeDtoConversion) Creates an instance of aMethodResultrecord 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.booleanisDto()Returns the value of theisDtorecord component.booleanReturns the value of theisRuntimeDtoConversionrecord component.io.micronaut.inject.ast.ClassElementReturns the value of theresultTyperecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MethodResult
public MethodResult(io.micronaut.inject.ast.ClassElement resultType, boolean isDto, boolean isRuntimeDtoConversion) Creates an instance of aMethodResultrecord class.- Parameters:
resultType- the value for theresultTyperecord componentisDto- the value for theisDtorecord componentisRuntimeDtoConversion- the value for theisRuntimeDtoConversionrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
resultType
public io.micronaut.inject.ast.ClassElement resultType()Returns the value of theresultTyperecord component.- Returns:
- the value of the
resultTyperecord component
-
isDto
-
isRuntimeDtoConversion
public boolean isRuntimeDtoConversion()Returns the value of theisRuntimeDtoConversionrecord component.- Returns:
- the value of the
isRuntimeDtoConversionrecord component
-