Record Class TickData.TickReportData
java.lang.Object
java.lang.Record
ca.spottedleaf.common.time.TickData.TickReportData
- Enclosing class:
TickData
public static record TickData.TickReportData(int collectedTicks, long collectedTickIntervalStart, long collectedTickIntervalEnd, long totalTimeTicking, double utilisation, TickData.SegmentedAverage tpsData, TickData.SegmentedAverage timePerTickData, TickData.SegmentedAverage missingCPUTimeData)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionTickReportData(int collectedTicks, long collectedTickIntervalStart, long collectedTickIntervalEnd, long totalTimeTicking, double utilisation, TickData.SegmentedAverage tpsData, TickData.SegmentedAverage timePerTickData, TickData.SegmentedAverage missingCPUTimeData) Creates an instance of aTickReportDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of thecollectedTickIntervalEndrecord component.longReturns the value of thecollectedTickIntervalStartrecord component.intReturns the value of thecollectedTicksrecord 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 themissingCPUTimeDatarecord component.Returns the value of thetimePerTickDatarecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of thetotalTimeTickingrecord component.tpsData()Returns the value of thetpsDatarecord component.doubleReturns the value of theutilisationrecord component.
-
Constructor Details
-
TickReportData
public TickReportData(int collectedTicks, long collectedTickIntervalStart, long collectedTickIntervalEnd, long totalTimeTicking, double utilisation, TickData.SegmentedAverage tpsData, TickData.SegmentedAverage timePerTickData, TickData.SegmentedAverage missingCPUTimeData) Creates an instance of aTickReportDatarecord class.- Parameters:
collectedTicks- the value for thecollectedTicksrecord componentcollectedTickIntervalStart- the value for thecollectedTickIntervalStartrecord componentcollectedTickIntervalEnd- the value for thecollectedTickIntervalEndrecord componenttotalTimeTicking- the value for thetotalTimeTickingrecord componentutilisation- the value for theutilisationrecord componenttpsData- the value for thetpsDatarecord componenttimePerTickData- the value for thetimePerTickDatarecord componentmissingCPUTimeData- the value for themissingCPUTimeDatarecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
collectedTicks
public int collectedTicks()Returns the value of thecollectedTicksrecord component.- Returns:
- the value of the
collectedTicksrecord component
-
collectedTickIntervalStart
public long collectedTickIntervalStart()Returns the value of thecollectedTickIntervalStartrecord component.- Returns:
- the value of the
collectedTickIntervalStartrecord component
-
collectedTickIntervalEnd
public long collectedTickIntervalEnd()Returns the value of thecollectedTickIntervalEndrecord component.- Returns:
- the value of the
collectedTickIntervalEndrecord component
-
totalTimeTicking
public long totalTimeTicking()Returns the value of thetotalTimeTickingrecord component.- Returns:
- the value of the
totalTimeTickingrecord component
-
utilisation
public double utilisation()Returns the value of theutilisationrecord component.- Returns:
- the value of the
utilisationrecord component
-
tpsData
Returns the value of thetpsDatarecord component.- Returns:
- the value of the
tpsDatarecord component
-
timePerTickData
Returns the value of thetimePerTickDatarecord component.- Returns:
- the value of the
timePerTickDatarecord component
-
missingCPUTimeData
Returns the value of themissingCPUTimeDatarecord component.- Returns:
- the value of the
missingCPUTimeDatarecord component
-