Contents
Record Class PacketStatsRecorder.RecentStats
java.lang.Object
java.lang.Record
com.hypixel.hytale.protocol.io.PacketStatsRecorder.RecentStats
- Enclosing interface:
PacketStatsRecorder
public static record PacketStatsRecorder.RecentStats(int count, long uncompressedTotal, long compressedTotal, int uncompressedMin, int uncompressedMax, int compressedMin, int compressedMax)
extends Record
Statistics for a recent time window.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRecentStats(int count, long uncompressedTotal, long compressedTotal, int uncompressedMin, int uncompressedMax, int compressedMin, int compressedMax) Creates an instance of aRecentStatsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thecompressedMaxrecord component.intReturns the value of thecompressedMinrecord component.longReturns the value of thecompressedTotalrecord component.intcount()Returns the value of thecountrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.intReturns the value of theuncompressedMaxrecord component.intReturns the value of theuncompressedMinrecord component.longReturns the value of theuncompressedTotalrecord component.
-
Field Details
-
EMPTY
-
-
Constructor Details
-
RecentStats
public RecentStats(int count, long uncompressedTotal, long compressedTotal, int uncompressedMin, int uncompressedMax, int compressedMin, int compressedMax) Creates an instance of aRecentStatsrecord class.- Parameters:
count- the value for thecountrecord componentuncompressedTotal- the value for theuncompressedTotalrecord componentcompressedTotal- the value for thecompressedTotalrecord componentuncompressedMin- the value for theuncompressedMinrecord componentuncompressedMax- the value for theuncompressedMaxrecord componentcompressedMin- the value for thecompressedMinrecord componentcompressedMax- the value for thecompressedMaxrecord 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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
count
public int count()Returns the value of thecountrecord component.- Returns:
- the value of the
countrecord component
-
uncompressedTotal
public long uncompressedTotal()Returns the value of theuncompressedTotalrecord component.- Returns:
- the value of the
uncompressedTotalrecord component
-
compressedTotal
public long compressedTotal()Returns the value of thecompressedTotalrecord component.- Returns:
- the value of the
compressedTotalrecord component
-
uncompressedMin
public int uncompressedMin()Returns the value of theuncompressedMinrecord component.- Returns:
- the value of the
uncompressedMinrecord component
-
uncompressedMax
public int uncompressedMax()Returns the value of theuncompressedMaxrecord component.- Returns:
- the value of the
uncompressedMaxrecord component
-
compressedMin
public int compressedMin()Returns the value of thecompressedMinrecord component.- Returns:
- the value of the
compressedMinrecord component
-
compressedMax
public int compressedMax()Returns the value of thecompressedMaxrecord component.- Returns:
- the value of the
compressedMaxrecord component
-