Record Class HatchFilled
java.lang.Object
java.lang.Record
com.gtnewhorizons.horizonqa.api.event.HatchFilled
- All Implemented Interfaces:
TestEvent
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.gtnewhorizons.horizonqa.api.event.TestEvent
TestEvent.Category -
Constructor Summary
ConstructorsConstructorDescriptionHatchFilled(int tick, TestPos hatch, String fluidName, int amountMb, int accepted) Creates an instance of aHatchFilledrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintaccepted()Returns the value of theacceptedrecord component.intamountMb()Returns the value of theamountMbrecord component.category()Coarse bucket; one ofTestEvent.Category.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefluidNamerecord component.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.
-
Constructor Details
-
HatchFilled
Creates an instance of aHatchFilledrecord class.- Parameters:
tick- the value for thetickrecord componenthatch- the value for thehatchrecord componentfluidName- the value for thefluidNamerecord componentamountMb- the value for theamountMbrecord componentaccepted- the value for theacceptedrecord 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
-
fluidName
Returns the value of thefluidNamerecord component.- Returns:
- the value of the
fluidNamerecord component
-
amountMb
public int amountMb()Returns the value of theamountMbrecord component.- Returns:
- the value of the
amountMbrecord component
-
accepted
public int accepted()Returns the value of theacceptedrecord component.- Returns:
- the value of the
acceptedrecord component
-