Package ch.rswk.meta.engine
Record Class GatewayService.DeliveryReply
java.lang.Object
java.lang.Record
ch.rswk.meta.engine.GatewayService.DeliveryReply
- Enclosing class:
GatewayService
public static record GatewayService.DeliveryReply(boolean delivered, GatewayService.DeliveryRequest request)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanThe field for thedeliveredrecord component.private final GatewayService.DeliveryRequestThe field for therequestrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionDeliveryReply(boolean delivered, GatewayService.DeliveryRequest request) Creates an instance of aDeliveryReplyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thedeliveredrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.request()Returns the value of therequestrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
delivered
private final boolean deliveredThe field for thedeliveredrecord component. -
request
The field for therequestrecord component.
-
-
Constructor Details
-
DeliveryReply
Creates an instance of aDeliveryReplyrecord class.- Parameters:
delivered- the value for thedeliveredrecord componentrequest- the value for therequestrecord 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 '=='. -
delivered
public boolean delivered()Returns the value of thedeliveredrecord component.- Returns:
- the value of the
deliveredrecord component
-
request
Returns the value of therequestrecord component.- Returns:
- the value of the
requestrecord component
-