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 Link icon

    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 Link icon

    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 Link icon

    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 Link icon

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

    • fastest Link icon

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

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

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

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

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

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

    • TimedStatSummary Link icon

      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 Link icon

    • summary Link icon

      public static <T extends TimedStat> TimedStatSummary<T> summary(List<T> p_185850_)
    • toString Link icon

      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 Link icon

      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 Link icon

      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 Link icon

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

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

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

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

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

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