Record Class MachineFormed
java.lang.Object
java.lang.Record
com.gtnewhorizons.horizonqa.api.event.MachineFormed
- All Implemented Interfaces:
TestEvent
@Desugar
public record MachineFormed(int tick, TestPos controller, String mteClass, FormedCause cause, HatchTopology topology)
extends Record
implements TestEvent
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.gtnewhorizons.horizonqa.api.event.TestEvent
TestEvent.Category -
Constructor Summary
ConstructorsConstructorDescriptionMachineFormed(int tick, TestPos controller, String mteClass, FormedCause cause, HatchTopology topology) Creates an instance of aMachineFormedrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncategory()Coarse bucket; one ofTestEvent.Category.cause()Returns the value of thecauserecord component.Returns the value of thecontrollerrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.mteClass()Returns the value of themteClassrecord component.summary()Single-line human-readable description.inttick()Returns the value of thetickrecord component.topology()Returns the value of thetopologyrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MachineFormed
public MachineFormed(int tick, TestPos controller, String mteClass, FormedCause cause, HatchTopology topology) Creates an instance of aMachineFormedrecord class.- Parameters:
tick- the value for thetickrecord componentcontroller- the value for thecontrollerrecord componentmteClass- the value for themteClassrecord componentcause- the value for thecauserecord componenttopology- the value for thetopologyrecord 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. -
controller
Returns the value of thecontrollerrecord component.- Returns:
- the value of the
controllerrecord component
-
mteClass
Returns the value of themteClassrecord component.- Returns:
- the value of the
mteClassrecord component
-
cause
Returns the value of thecauserecord component.- Returns:
- the value of the
causerecord component
-
topology
Returns the value of thetopologyrecord component.- Returns:
- the value of the
topologyrecord component
-