Record Class PollutionEmitted
java.lang.Object
java.lang.Record
com.gtnewhorizons.horizonqa.api.event.PollutionEmitted
- All Implemented Interfaces:
TestEvent
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.gtnewhorizons.horizonqa.api.event.TestEvent
TestEvent.Category -
Constructor Summary
ConstructorsConstructorDescriptionPollutionEmitted(int tick, TestPos originChunk, long amount, long cumulativeSinceStart) Creates an instance of aPollutionEmittedrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongamount()Returns the value of theamountrecord component.category()Coarse bucket; one ofTestEvent.Category.longReturns the value of thecumulativeSinceStartrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theoriginChunkrecord 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
-
PollutionEmitted
Creates an instance of aPollutionEmittedrecord class.- Parameters:
tick- the value for thetickrecord componentoriginChunk- the value for theoriginChunkrecord componentamount- the value for theamountrecord componentcumulativeSinceStart- the value for thecumulativeSinceStartrecord 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. -
originChunk
Returns the value of theoriginChunkrecord component.- Returns:
- the value of the
originChunkrecord component
-
amount
public long amount()Returns the value of theamountrecord component.- Returns:
- the value of the
amountrecord component
-
cumulativeSinceStart
public long cumulativeSinceStart()Returns the value of thecumulativeSinceStartrecord component.- Returns:
- the value of the
cumulativeSinceStartrecord component
-