Package io.micronaut.jaxrs.common
Record Class JaxRsMessageBodyReaderDefinition
java.lang.Object
java.lang.Record
io.micronaut.jaxrs.common.JaxRsMessageBodyReaderDefinition
- Record Components:
- type- The type
- messageBodyReader- Teh reader
- priority- The order
- All Implemented Interfaces:
- Ordered
@Internal
public record JaxRsMessageBodyReaderDefinition(Argument<?> type, MessageBodyReader<?> messageBodyReader, int priority)
extends Record
implements Ordered
The simple definition for message body reader.
- Since:
- 4.6
- Author:
- Denis Stepanov
- 
Field SummaryFields inherited from interface io.micronaut.core.order.OrderedHIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
- 
Constructor SummaryConstructorsConstructorDescriptionJaxRsMessageBodyReaderDefinition(Argument<?> type, MessageBodyReader<?> messageBodyReader, int priority) Creates an instance of aJaxRsMessageBodyReaderDefinitionrecord class.
- 
Method SummaryModifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themessageBodyReaderrecord component.intpriority()Returns the value of thepriorityrecord component.final StringtoString()Returns a string representation of this record class.Argument<?>type()Returns the value of thetyperecord component.
- 
Constructor Details- 
JaxRsMessageBodyReaderDefinitionpublic JaxRsMessageBodyReaderDefinition(Argument<?> type, MessageBodyReader<?> messageBodyReader, int priority) Creates an instance of aJaxRsMessageBodyReaderDefinitionrecord class.- Parameters:
- type- the value for the- typerecord component
- messageBodyReader- the value for the- messageBodyReaderrecord component
- priority- the value for the- priorityrecord component
 
 
- 
- 
Method Details- 
toStringReturns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
- 
hashCodepublic final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
- 
equalsIndicates 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 '=='.
- 
typeReturns the value of thetyperecord component.- Returns:
- the value of the typerecord component
 
- 
messageBodyReaderReturns the value of themessageBodyReaderrecord component.- Returns:
- the value of the messageBodyReaderrecord component
 
- 
prioritypublic int priority()Returns the value of thepriorityrecord component.- Returns:
- the value of the priorityrecord component
 
 
-