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 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
-
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. -
type
-
messageBodyReader
Returns the value of themessageBodyReaderrecord component.- Returns:
- the value of the
messageBodyReaderrecord component
-
priority
-