Record Class EventGraph.Sequentially<Event>
java.lang.Object
java.lang.Record
gov.nasa.jpl.aerie.merlin.driver.timeline.EventGraph.Sequentially<Event>
- All Implemented Interfaces:
EffectExpression<Event>,EventGraph<Event>
- Enclosing interface:
EventGraph<Event>
public static record EventGraph.Sequentially<Event>(EventGraph<Event> prefix, EventGraph<Event> suffix)
extends Record
implements EventGraph<Event>
Use
EventGraph.sequentially(EventGraph[])} instead of instantiating this class directly.-
Nested Class Summary
Nested classes/interfaces inherited from interface gov.nasa.jpl.aerie.merlin.driver.timeline.EventGraph
EventGraph.Atom<Event>, EventGraph.Concurrently<Event>, EventGraph.Empty<Event>, EventGraph.IdentityTrait<T>, EventGraph.Sequentially<Event> -
Constructor Summary
ConstructorsConstructorDescriptionSequentially(EventGraph<Event> prefix, EventGraph<Event> suffix) Creates an instance of aSequentiallyrecord 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.prefix()Returns the value of theprefixrecord component.suffix()Returns the value of thesuffixrecord component.toString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface gov.nasa.jpl.aerie.merlin.driver.timeline.EffectExpression
evaluate, map, substituteMethods inherited from interface gov.nasa.jpl.aerie.merlin.driver.timeline.EventGraph
evaluate
-
Constructor Details
-
Sequentially
Creates an instance of aSequentiallyrecord class.- Parameters:
prefix- the value for theprefixrecord componentsuffix- the value for thesuffixrecord 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). -
prefix
Returns the value of theprefixrecord component.- Returns:
- the value of the
prefixrecord component
-
suffix
Returns the value of thesuffixrecord component.- Returns:
- the value of the
suffixrecord component
-