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
    Modifier and Type
    Field
    Description
     
  • 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 Object

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

  • 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 the compare method from their corresponding wrapper classes.
      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