Record Class EventRecord
java.lang.Object
java.lang.Record
gov.nasa.jpl.aerie.merlin.driver.engine.EventRecord
-
Constructor Summary
ConstructorsConstructorDescriptionEventRecord(int topicId, Optional<Long> spanId, gov.nasa.jpl.aerie.merlin.protocol.types.SerializedValue value) Creates an instance of aEventRecordrecord 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.spanId()Returns the value of thespanIdrecord component.inttopicId()Returns the value of thetopicIdrecord component.final StringtoString()Returns a string representation of this record class.gov.nasa.jpl.aerie.merlin.protocol.types.SerializedValuevalue()Returns the value of thevaluerecord component.
-
Constructor Details
-
EventRecord
public EventRecord(int topicId, Optional<Long> spanId, gov.nasa.jpl.aerie.merlin.protocol.types.SerializedValue value) Creates an instance of aEventRecordrecord class.- Parameters:
topicId- the value for thetopicIdrecord componentspanId- the value for thespanIdrecord componentvalue- the value for thevaluerecord 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 '=='. -
topicId
public int topicId()Returns the value of thetopicIdrecord component.- Returns:
- the value of the
topicIdrecord component
-
spanId
Returns the value of thespanIdrecord component.- Returns:
- the value of the
spanIdrecord component
-
value
public gov.nasa.jpl.aerie.merlin.protocol.types.SerializedValue value()Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-