Record Class MicronautJsonbProvider.MicronautJsonb.MapperAndClose
java.lang.Object
java.lang.Record
io.micronaut.serde.jsonb.MicronautJsonbProvider.MicronautJsonb.MapperAndClose
- Enclosing class:
MicronautJsonbProvider.MicronautJsonb
protected static record MicronautJsonbProvider.MicronautJsonb.MapperAndClose(ObjectMapper mapper, Runnable closeAction)
extends Record
- Since:
- 3.1.0
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedMapperAndClose(ObjectMapper mapper, Runnable closeAction) Creates an instance of aMapperAndCloserecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecloseActionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.mapper()Returns the value of themapperrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MapperAndClose
Creates an instance of aMapperAndCloserecord class.- Parameters:
mapper- the value for themapperrecord componentcloseAction- the value for thecloseActionrecord 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). -
mapper
Returns the value of themapperrecord component.- Returns:
- the value of the
mapperrecord component
-
closeAction
Returns the value of thecloseActionrecord component.- Returns:
- the value of the
closeActionrecord component
-