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 boolean
The field for thedelivered
record component.private final GatewayService.DeliveryRequest
The field for therequest
record component. -
Constructor Summary
ConstructorsConstructorDescriptionDeliveryReply
(boolean delivered, GatewayService.DeliveryRequest request) Creates an instance of aDeliveryReply
record class. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the value of thedelivered
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.request()
Returns the value of therequest
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
delivered
private final boolean deliveredThe field for thedelivered
record component. -
request
The field for therequest
record component.
-
-
Constructor Details
-
DeliveryReply
Creates an instance of aDeliveryReply
record class.- Parameters:
delivered
- the value for thedelivered
record componentrequest
- the value for therequest
record 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 thedelivered
record component.- Returns:
- the value of the
delivered
record component
-
request
Returns the value of therequest
record component.- Returns:
- the value of the
request
record component
-