Record Class FileIOStat.Summary

java.lang.Object
java.lang.Record
net.minecraft.util.profiling.jfr.stats.FileIOStat.Summary
Enclosing class:
FileIOStat

public static record FileIOStat.Summary(long totalBytes, double bytesPerSecond, long counts, double countsPerSecond, Duration timeSpentInIO, List<com.mojang.datafixers.util.Pair<String,Long>> topTenContributorsByTotalBytes) extends Record
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final double
    The field for the bytesPerSecond record component.
    private final long
    The field for the counts record component.
    private final double
    The field for the countsPerSecond record component.
    private final Duration
    The field for the timeSpentInIO record component.
    private final List<com.mojang.datafixers.util.Pair<String,Long>>
    The field for the topTenContributorsByTotalBytes record component.
    private final long
    The field for the totalBytes record component.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Summary(long totalBytes, double bytesPerSecond, long counts, double countsPerSecond, Duration timeSpentInIO, List<com.mojang.datafixers.util.Pair<String,Long>> topTenContributorsByTotalBytes)
    Creates an instance of a Summary record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    Returns the value of the bytesPerSecond record component.
    long
    Returns the value of the counts record component.
    double
    Returns the value of the countsPerSecond record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    Returns the value of the timeSpentInIO record component.
    List<com.mojang.datafixers.util.Pair<String,Long>>
    Returns the value of the topTenContributorsByTotalBytes record component.
    final String
    Returns a string representation of this record class.
    long
    Returns the value of the totalBytes record component.

    Methods inherited from class java.lang.Object

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

    • totalBytes

      private final long totalBytes
      The field for the totalBytes record component.
    • bytesPerSecond

      private final double bytesPerSecond
      The field for the bytesPerSecond record component.
    • counts

      private final long counts
      The field for the counts record component.
    • countsPerSecond

      private final double countsPerSecond
      The field for the countsPerSecond record component.
    • timeSpentInIO

      private final Duration timeSpentInIO
      The field for the timeSpentInIO record component.
    • topTenContributorsByTotalBytes

      private final List<com.mojang.datafixers.util.Pair<String,Long>> topTenContributorsByTotalBytes
      The field for the topTenContributorsByTotalBytes record component.
  • Constructor Details

    • Summary

      public Summary(long totalBytes, double bytesPerSecond, long counts, double countsPerSecond, Duration timeSpentInIO, List<com.mojang.datafixers.util.Pair<String,Long>> topTenContributorsByTotalBytes)
      Creates an instance of a Summary record class.
      Parameters:
      totalBytes - the value for the totalBytes record component
      bytesPerSecond - the value for the bytesPerSecond record component
      counts - the value for the counts record component
      countsPerSecond - the value for the countsPerSecond record component
      timeSpentInIO - the value for the timeSpentInIO record component
      topTenContributorsByTotalBytes - the value for the topTenContributorsByTotalBytes 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. Reference components are compared with Objects::equals(Object,Object); primitive components 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.
    • totalBytes

      public long totalBytes()
      Returns the value of the totalBytes record component.
      Returns:
      the value of the totalBytes record component
    • bytesPerSecond

      public double bytesPerSecond()
      Returns the value of the bytesPerSecond record component.
      Returns:
      the value of the bytesPerSecond record component
    • counts

      public long counts()
      Returns the value of the counts record component.
      Returns:
      the value of the counts record component
    • countsPerSecond

      public double countsPerSecond()
      Returns the value of the countsPerSecond record component.
      Returns:
      the value of the countsPerSecond record component
    • timeSpentInIO

      public Duration timeSpentInIO()
      Returns the value of the timeSpentInIO record component.
      Returns:
      the value of the timeSpentInIO record component
    • topTenContributorsByTotalBytes

      public List<com.mojang.datafixers.util.Pair<String,Long>> topTenContributorsByTotalBytes()
      Returns the value of the topTenContributorsByTotalBytes record component.
      Returns:
      the value of the topTenContributorsByTotalBytes record component