Package io.micronaut.jaxrs.common
Record Class JaxRsMessageBodyReaderDefinition
java.lang.Object
java.lang.Record
io.micronaut.jaxrs.common.JaxRsMessageBodyReaderDefinition
- Record Components:
type- The typemessageBodyReader- Teh readerpriority- 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 Summary
Fields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
ConstructorsConstructorDescriptionJaxRsMessageBodyReaderDefinition(Argument<?> type, MessageBodyReader<?> messageBodyReader, int priority) Creates an instance of aJaxRsMessageBodyReaderDefinitionrecord 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.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
-
JaxRsMessageBodyReaderDefinition
public JaxRsMessageBodyReaderDefinition(Argument<?> type, MessageBodyReader<?> messageBodyReader, int priority) Creates an instance of aJaxRsMessageBodyReaderDefinitionrecord class.- Parameters:
type- the value for thetyperecord componentmessageBodyReader- the value for themessageBodyReaderrecord componentpriority- the value for thepriorityrecord component
-
-
Method Details
-
toString
Returns 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. -
hashCode
public 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. -
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 '=='. -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
messageBodyReader
Returns the value of themessageBodyReaderrecord component.- Returns:
- the value of the
messageBodyReaderrecord component
-
priority
public int priority()Returns the value of thepriorityrecord component.- Returns:
- the value of the
priorityrecord component
-