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

    Fields
    Modifier and Type
    Field
    Description
    private final int
    The field for the compressedMax record component.
    private final int
    The field for the compressedMin record component.
    private final long
    The field for the compressedTotal record component.
    private final int
    The field for the count record component.
     
    private final int
    The field for the uncompressedMax record component.
    private final int
    The field for the uncompressedMin record component.
    private final long
    The field for the uncompressedTotal record component.
  • Constructor Summary

    Constructors
    Constructor
    Description
    RecentStats(int count, long uncompressedTotal, long compressedTotal, int uncompressedMin, int uncompressedMax, int compressedMin, int compressedMax)
    Creates an instance of a RecentStats record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the value of the compressedMax record component.
    int
    Returns the value of the compressedMin record component.
    long
    Returns the value of the compressedTotal record component.
    int
    Returns the value of the count record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    final String
    Returns a string representation of this record class.
    int
    Returns the value of the uncompressedMax record component.
    int
    Returns the value of the uncompressedMin record component.
    long
    Returns the value of the uncompressedTotal record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • count

      private final int count
      The field for the count record component.
    • uncompressedTotal

      private final long uncompressedTotal
      The field for the uncompressedTotal record component.
    • compressedTotal

      private final long compressedTotal
      The field for the compressedTotal record component.
    • uncompressedMin

      private final int uncompressedMin
      The field for the uncompressedMin record component.
    • uncompressedMax

      private final int uncompressedMax
      The field for the uncompressedMax record component.
    • compressedMin

      private final int compressedMin
      The field for the compressedMin record component.
    • compressedMax

      private final int compressedMax
      The field for the compressedMax record component.
    • EMPTY

      public static final PacketStatsRecorder.RecentStats EMPTY
  • Constructor Details

    • RecentStats

      public RecentStats(int count, long uncompressedTotal, long compressedTotal, int uncompressedMin, int uncompressedMax, int compressedMin, int compressedMax)
      Creates an instance of a RecentStats record class.
      Parameters:
      count - the value for the count record component
      uncompressedTotal - the value for the uncompressedTotal record component
      compressedTotal - the value for the compressedTotal record component
      uncompressedMin - the value for the uncompressedMin record component
      uncompressedMax - the value for the uncompressedMax record component
      compressedMin - the value for the compressedMin record component
      compressedMax - the value for the compressedMax record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • count

      public int count()
      Returns the value of the count record component.
      Returns:
      the value of the count record component
    • uncompressedTotal

      public long uncompressedTotal()
      Returns the value of the uncompressedTotal record component.
      Returns:
      the value of the uncompressedTotal record component
    • compressedTotal

      public long compressedTotal()
      Returns the value of the compressedTotal record component.
      Returns:
      the value of the compressedTotal record component
    • uncompressedMin

      public int uncompressedMin()
      Returns the value of the uncompressedMin record component.
      Returns:
      the value of the uncompressedMin record component
    • uncompressedMax

      public int uncompressedMax()
      Returns the value of the uncompressedMax record component.
      Returns:
      the value of the uncompressedMax record component
    • compressedMin

      public int compressedMin()
      Returns the value of the compressedMin record component.
      Returns:
      the value of the compressedMin record component
    • compressedMax

      public int compressedMax()
      Returns the value of the compressedMax record component.
      Returns:
      the value of the compressedMax record component