Record Class DaemonCheckerSpawner
java.lang.Object
java.lang.Record
gov.nasa.jpl.aerie.foomissionmodel.activities.DaemonCheckerSpawner
- Record Components:
minutesElapsed- The expected number of minutes elapsed when the DaemonCheckerActivity beginsspawnDelay- The number of minutes to delay between the start of this activity and spawning the DaemonCheckerActivity
An activity that spawns a DaemonCheckerActivity after delaying.
Useful for testing the behavior of exceptions thrown by child activities.
-
Constructor Summary
ConstructorsConstructorDescriptionDaemonCheckerSpawner(int minutesElapsed, int spawnDelay) Creates an instance of aDaemonCheckerSpawnerrecord 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.intReturns the value of theminutesElapsedrecord component.voidintReturns the value of thespawnDelayrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DaemonCheckerSpawner
public DaemonCheckerSpawner(int minutesElapsed, int spawnDelay) Creates an instance of aDaemonCheckerSpawnerrecord class.- Parameters:
minutesElapsed- the value for theminutesElapsedrecord componentspawnDelay- the value for thespawnDelayrecord component
-
-
Method Details
-
run
-
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 with '=='. -
minutesElapsed
public int minutesElapsed()Returns the value of theminutesElapsedrecord component.- Returns:
- the value of the
minutesElapsedrecord component
-
spawnDelay
public int spawnDelay()Returns the value of thespawnDelayrecord component.- Returns:
- the value of the
spawnDelayrecord component
-