Record Class TemporalEventSource.TimePoint.Commit
java.lang.Object
java.lang.Record
gov.nasa.jpl.aerie.merlin.driver.timeline.TemporalEventSource.TimePoint.Commit
- All Implemented Interfaces:
TemporalEventSource.TimePoint
- Enclosing interface:
TemporalEventSource.TimePoint
public static record TemporalEventSource.TimePoint.Commit(EventGraph<Event> events, Set<gov.nasa.jpl.aerie.merlin.protocol.driver.Topic<?>> topics)
extends Record
implements TemporalEventSource.TimePoint
-
Nested Class Summary
Nested classes/interfaces inherited from interface gov.nasa.jpl.aerie.merlin.driver.timeline.TemporalEventSource.TimePoint
TemporalEventSource.TimePoint.Commit, TemporalEventSource.TimePoint.Delta -
Constructor Summary
ConstructorsConstructorDescriptionCommit(EventGraph<Event> events, Set<gov.nasa.jpl.aerie.merlin.protocol.driver.Topic<?>> topics) Creates an instance of aCommitrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.events()Returns the value of theeventsrecord component.final inthashCode()Returns a hash code value for this object.Set<gov.nasa.jpl.aerie.merlin.protocol.driver.Topic<?>> topics()Returns the value of thetopicsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Commit
public Commit(EventGraph<Event> events, Set<gov.nasa.jpl.aerie.merlin.protocol.driver.Topic<?>> topics) Creates an instance of aCommitrecord class.- Parameters:
events- the value for theeventsrecord componenttopics- the value for thetopicsrecord 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). -
events
Returns the value of theeventsrecord component.- Returns:
- the value of the
eventsrecord component
-
topics
Returns the value of thetopicsrecord component.- Returns:
- the value of the
topicsrecord component
-