Package s2.types
Record Class AppendOutput
java.lang.Object
java.lang.Record
s2.types.AppendOutput
-
Constructor Summary
ConstructorsConstructorDescriptionAppendOutput(long startSeqNum, long endSeqNum, long nextSeqNum) Creates an instance of aAppendOutputrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of theendSeqNumrecord component.final booleanIndicates whether some other object is "equal to" this one.static AppendOutputfromProto(s2.v1alpha.AppendOutput appendOutput) final inthashCode()Returns a hash code value for this object.longReturns the value of thenextSeqNumrecord component.longReturns the value of thestartSeqNumrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AppendOutput
public AppendOutput(long startSeqNum, long endSeqNum, long nextSeqNum) Creates an instance of aAppendOutputrecord class.- Parameters:
startSeqNum- the value for thestartSeqNumrecord componentendSeqNum- the value for theendSeqNumrecord componentnextSeqNum- the value for thenextSeqNumrecord component
-
-
Method Details
-
fromProto
-
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 with '=='. -
startSeqNum
public long startSeqNum()Returns the value of thestartSeqNumrecord component.- Returns:
- the value of the
startSeqNumrecord component
-
endSeqNum
public long endSeqNum()Returns the value of theendSeqNumrecord component.- Returns:
- the value of the
endSeqNumrecord component
-
nextSeqNum
public long nextSeqNum()Returns the value of thenextSeqNumrecord component.- Returns:
- the value of the
nextSeqNumrecord component
-