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 aAppendOutput
record class. -
Method Summary
Modifier and TypeMethodDescriptionlong
Returns the value of theendSeqNum
record component.final boolean
Indicates whether some other object is "equal to" this one.static AppendOutput
fromProto
(s2.v1alpha.AppendOutput appendOutput) final int
hashCode()
Returns a hash code value for this object.long
Returns the value of thenextSeqNum
record component.long
Returns the value of thestartSeqNum
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
AppendOutput
public AppendOutput(long startSeqNum, long endSeqNum, long nextSeqNum) Creates an instance of aAppendOutput
record class.- Parameters:
startSeqNum
- the value for thestartSeqNum
record componentendSeqNum
- the value for theendSeqNum
record componentnextSeqNum
- the value for thenextSeqNum
record 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 thestartSeqNum
record component.- Returns:
- the value of the
startSeqNum
record component
-
endSeqNum
public long endSeqNum()Returns the value of theendSeqNum
record component.- Returns:
- the value of the
endSeqNum
record component
-
nextSeqNum
public long nextSeqNum()Returns the value of thenextSeqNum
record component.- Returns:
- the value of the
nextSeqNum
record component
-