Package io.camunda.zeebe.journal.record
Record Class RecordData
java.lang.Object
java.lang.Record
io.camunda.zeebe.journal.record.RecordData
-
Constructor Summary
ConstructorsConstructorDescriptionRecordData(long index, long asqn, org.agrona.DirectBuffer data) Creates an instance of aRecordDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongasqn()Returns the value of theasqnrecord component.org.agrona.DirectBufferdata()Returns the value of thedatarecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longindex()Returns the value of theindexrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RecordData
public RecordData(long index, long asqn, org.agrona.DirectBuffer data) Creates an instance of aRecordDatarecord class.- Parameters:
index- the value for theindexrecord componentasqn- the value for theasqnrecord componentdata- the value for thedatarecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
index
public long index()Returns the value of theindexrecord component.- Returns:
- the value of the
indexrecord component
-
asqn
public long asqn()Returns the value of theasqnrecord component.- Returns:
- the value of the
asqnrecord component
-
data
public org.agrona.DirectBuffer data()Returns the value of thedatarecord component.- Returns:
- the value of the
datarecord component
-