Record Class CAITransactionResponse
java.lang.Object
java.lang.Record
com.io7m.cardant.protocol.inventory.CAITransactionResponse
- Record Components:
requestId- The request IDresponses- The response for each executed command
- All Implemented Interfaces:
CAProtocolMessageType,CAIMessageType,com.io7m.hibiscus.api.HBMessageType
public record CAITransactionResponse(UUID requestId, List<CAIResponseType> responses)
extends Record
implements CAIMessageType
A response to a transaction.
-
Constructor Summary
ConstructorsConstructorDescriptionCAITransactionResponse(UUID requestId, List<CAIResponseType> responses) A response to a transaction. -
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 therequestIdrecord component.Returns the value of theresponsesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CAITransactionResponse
A response to a transaction.- Parameters:
responses- The response for each executed command
-
-
Method Details
-
firstError
- Returns:
- The first error
-
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). -
requestId
-
responses
-