Record Class EUSupplyJobRegistered
java.lang.Object
java.lang.Record
com.gtnewhorizons.horizonqa.api.event.EUSupplyJobRegistered
- All Implemented Interfaces:
TestEvent
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.gtnewhorizons.horizonqa.api.event.TestEvent
TestEvent.Category -
Constructor Summary
ConstructorsConstructorDescriptionEUSupplyJobRegistered(int tick, TestPos hatch, long voltage, long amperage, int durationTicks) Creates an instance of aEUSupplyJobRegisteredrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongamperage()Returns the value of theamperagerecord component.category()Coarse bucket; one ofTestEvent.Category.intReturns the value of thedurationTicksrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.hatch()Returns the value of thehatchrecord component.summary()Single-line human-readable description.inttick()Returns the value of thetickrecord component.final StringtoString()Returns a string representation of this record class.longvoltage()Returns the value of thevoltagerecord component.
-
Constructor Details
-
EUSupplyJobRegistered
public EUSupplyJobRegistered(int tick, TestPos hatch, long voltage, long amperage, int durationTicks) Creates an instance of aEUSupplyJobRegisteredrecord class.- Parameters:
tick- the value for thetickrecord componenthatch- the value for thehatchrecord componentvoltage- the value for thevoltagerecord componentamperage- the value for theamperagerecord componentdurationTicks- the value for thedurationTicksrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
tick
public int tick()Returns the value of thetickrecord component. -
hatch
Returns the value of thehatchrecord component.- Returns:
- the value of the
hatchrecord component
-
voltage
public long voltage()Returns the value of thevoltagerecord component.- Returns:
- the value of the
voltagerecord component
-
amperage
public long amperage()Returns the value of theamperagerecord component.- Returns:
- the value of the
amperagerecord component
-
durationTicks
public int durationTicks()Returns the value of thedurationTicksrecord component.- Returns:
- the value of the
durationTicksrecord component
-