Record Class WarpStarted
java.lang.Object
java.lang.Record
com.gtnewhorizons.horizonqa.api.event.WarpStarted
- All Implemented Interfaces:
TestEvent
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.gtnewhorizons.horizonqa.api.event.TestEvent
TestEvent.Category -
Constructor Summary
ConstructorsConstructorDescriptionWarpStarted(int tick, int maxTicks, int watchedControllers) Creates an instance of aWarpStartedrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncategory()Coarse bucket; one ofTestEvent.Category.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intmaxTicks()Returns the value of themaxTicksrecord component.summary()Single-line human-readable description.inttick()Returns the value of thetickrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thewatchedControllersrecord component.
-
Constructor Details
-
WarpStarted
public WarpStarted(int tick, int maxTicks, int watchedControllers) Creates an instance of aWarpStartedrecord class.- Parameters:
tick- the value for thetickrecord componentmaxTicks- the value for themaxTicksrecord componentwatchedControllers- the value for thewatchedControllersrecord component
-
-
Method Details
-
category
Description copied from interface:TestEventCoarse bucket; one ofTestEvent.Category. -
summary
Description copied from interface:TestEventSingle-line human-readable description. Reporters print this verbatim. -
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 '=='. -
tick
public int tick()Returns the value of thetickrecord component. -
maxTicks
public int maxTicks()Returns the value of themaxTicksrecord component.- Returns:
- the value of the
maxTicksrecord component
-
watchedControllers
public int watchedControllers()Returns the value of thewatchedControllersrecord component.- Returns:
- the value of the
watchedControllersrecord component
-