Package com.hypixel.hytale.protocol.io
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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for thecompressedMaxrecord component.private final intThe field for thecompressedMinrecord component.private final longThe field for thecompressedTotalrecord component.private final intThe field for thecountrecord component.static final PacketStatsRecorder.RecentStatsprivate final intThe field for theuncompressedMaxrecord component.private final intThe field for theuncompressedMinrecord component.private final longThe field for theuncompressedTotalrecord component. -
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
-
count
private final int countThe field for thecountrecord component. -
uncompressedTotal
private final long uncompressedTotalThe field for theuncompressedTotalrecord component. -
compressedTotal
private final long compressedTotalThe field for thecompressedTotalrecord component. -
uncompressedMin
private final int uncompressedMinThe field for theuncompressedMinrecord component. -
uncompressedMax
private final int uncompressedMaxThe field for theuncompressedMaxrecord component. -
compressedMin
private final int compressedMinThe field for thecompressedMinrecord component. -
compressedMax
private final int compressedMaxThe field for thecompressedMaxrecord component. -
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
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. All components in this record class are compared with '=='. -
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
-