Record Class ShipmentDto
java.lang.Object
java.lang.Record
io.micronaut.data.tck.entities.ShipmentDto
-
Constructor Summary
ConstructorsConstructorDescriptionShipmentDto(ShipmentId shipmentId, String field) Creates an instance of aShipmentDtorecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.field()Returns the value of thefieldrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theshipmentIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ShipmentDto
Creates an instance of aShipmentDtorecord class.- Parameters:
shipmentId- the value for theshipmentIdrecord componentfield- the value for thefieldrecord 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). -
shipmentId
Returns the value of theshipmentIdrecord component.- Returns:
- the value of the
shipmentIdrecord component
-
field
Returns the value of thefieldrecord component.- Returns:
- the value of the
fieldrecord component
-