Record Class SendResult
java.lang.Object
java.lang.Record
io.awspring.cloud.kinesis.operations.SendResult
- Since:
- 4.3.0
- Author:
- Matej Nedic
-
Constructor Summary
ConstructorsConstructorDescriptionSendResult(String sequenceNumber, String shardId) Creates an instance of aSendResultrecord class. -
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 thesequenceNumberrecord component.shardId()Returns the value of theshardIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SendResult
Creates an instance of aSendResultrecord class.- Parameters:
sequenceNumber- the value for thesequenceNumberrecord componentshardId- the value for theshardIdrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
sequenceNumber
Returns the value of thesequenceNumberrecord component.- Returns:
- the value of the
sequenceNumberrecord component
-
shardId
Returns the value of theshardIdrecord component.- Returns:
- the value of the
shardIdrecord component
-