Record Class PostgresSimulationNotificationPayload
java.lang.Object
java.lang.Record
gov.nasa.jpl.aerie.merlin.worker.postgres.PostgresSimulationNotificationPayload
-
Constructor Summary
ConstructorsConstructorDescriptionPostgresSimulationNotificationPayload(long modelRevision, long planRevision, long simulationRevision, Optional<Long> simulationTemplateRevision, long planId, long datasetId, long simulationId) Creates an instance of aPostgresSimulationNotificationPayloadrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of thedatasetIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of themodelRevisionrecord component.longplanId()Returns the value of theplanIdrecord component.longReturns the value of theplanRevisionrecord component.longReturns the value of thesimulationIdrecord component.longReturns the value of thesimulationRevisionrecord component.Returns the value of thesimulationTemplateRevisionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PostgresSimulationNotificationPayload
public PostgresSimulationNotificationPayload(long modelRevision, long planRevision, long simulationRevision, Optional<Long> simulationTemplateRevision, long planId, long datasetId, long simulationId) Creates an instance of aPostgresSimulationNotificationPayloadrecord class.- Parameters:
modelRevision- the value for themodelRevisionrecord componentplanRevision- the value for theplanRevisionrecord componentsimulationRevision- the value for thesimulationRevisionrecord componentsimulationTemplateRevision- the value for thesimulationTemplateRevisionrecord componentplanId- the value for theplanIdrecord componentdatasetId- the value for thedatasetIdrecord componentsimulationId- the value for thesimulationIdrecord 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 '=='. -
modelRevision
public long modelRevision()Returns the value of themodelRevisionrecord component.- Returns:
- the value of the
modelRevisionrecord component
-
planRevision
public long planRevision()Returns the value of theplanRevisionrecord component.- Returns:
- the value of the
planRevisionrecord component
-
simulationRevision
public long simulationRevision()Returns the value of thesimulationRevisionrecord component.- Returns:
- the value of the
simulationRevisionrecord component
-
simulationTemplateRevision
Returns the value of thesimulationTemplateRevisionrecord component.- Returns:
- the value of the
simulationTemplateRevisionrecord component
-
planId
public long planId()Returns the value of theplanIdrecord component.- Returns:
- the value of the
planIdrecord component
-
datasetId
public long datasetId()Returns the value of thedatasetIdrecord component.- Returns:
- the value of the
datasetIdrecord component
-
simulationId
public long simulationId()Returns the value of thesimulationIdrecord component.- Returns:
- the value of the
simulationIdrecord component
-