Record Class TimedStatSummary<T extends TimedStat>

java.lang.Object
java.lang.Record
net.minecraft.util.profiling.jfr.stats.TimedStatSummary<T>

public record TimedStatSummary<T extends TimedStat>(T extends TimedStat fastest, T extends TimedStat slowest, @Nullable T extends TimedStat secondSlowest, int count, Map<Integer,Double> percentilesNanos, Duration totalDuration) extends Record
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final int
    The field for the count record component.
    private final T
    The field for the fastest record component.
    private final Map<Integer,Double>
    The field for the percentilesNanos record component.
    private final T
    The field for the secondSlowest record component.
    private final T
    The field for the slowest record component.
    private final Duration
    The field for the totalDuration record component.
  • Constructor Summary

    Constructors
    Constructor
    Description
    TimedStatSummary(T fastest, T slowest, T secondSlowest, int count, Map<Integer,Double> percentilesNanos, Duration totalDuration)
    Creates an instance of a TimedStatSummary record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the value of the count record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    Returns the value of the fastest record component.
    final int
    Returns a hash code value for this object.
    Returns the value of the percentilesNanos record component.
    Returns the value of the secondSlowest record component.
    Returns the value of the slowest record component.
    static <T extends TimedStat>
    TimedStatSummary<T>
    summary(List<T> p_185850_)
     
    final String
    Returns a string representation of this record class.
    Returns the value of the totalDuration record component.

    Methods inherited from class java.lang.Object

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

    • fastest

      private final T extends TimedStat fastest
      The field for the fastest record component.
    • slowest

      private final T extends TimedStat slowest
      The field for the slowest record component.
    • secondSlowest

      @Nullable private final T extends TimedStat secondSlowest
      The field for the secondSlowest record component.
    • count

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

      private final Map<Integer,Double> percentilesNanos
      The field for the percentilesNanos record component.
    • totalDuration

      private final Duration totalDuration
      The field for the totalDuration record component.
  • Constructor Details

    • TimedStatSummary

      public TimedStatSummary(T fastest, T slowest, @Nullable T secondSlowest, int count, Map<Integer,Double> percentilesNanos, Duration totalDuration)
      Creates an instance of a TimedStatSummary record class.
      Parameters:
      fastest - the value for the fastest record component
      slowest - the value for the slowest record component
      secondSlowest - the value for the secondSlowest record component
      count - the value for the count record component
      percentilesNanos - the value for the percentilesNanos record component
      totalDuration - the value for the totalDuration record component
  • Method Details

    • summary

      public static <T extends TimedStat> TimedStatSummary<T> summary(List<T> p_185850_)
    • 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.
    • fastest

      public T fastest()
      Returns the value of the fastest record component.
      Returns:
      the value of the fastest record component
    • slowest

      public T slowest()
      Returns the value of the slowest record component.
      Returns:
      the value of the slowest record component
    • secondSlowest

      @Nullable public T secondSlowest()
      Returns the value of the secondSlowest record component.
      Returns:
      the value of the secondSlowest record component
    • count

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

      public Map<Integer,Double> percentilesNanos()
      Returns the value of the percentilesNanos record component.
      Returns:
      the value of the percentilesNanos record component
    • totalDuration

      public Duration totalDuration()
      Returns the value of the totalDuration record component.
      Returns:
      the value of the totalDuration record component