Record Class TimedStatSummary<T extends TimedStat>
java.lang.Object
java.lang.Record
net.minecraft.util.profiling.jfr.stats.TimedStatSummary<T>
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final intThe field for thecountrecord component.private final TThe field for thefastestrecord component.The field for thepercentilesNanosrecord component.private final TThe field for thesecondSlowestrecord component.private final TThe field for theslowestrecord component.private final DurationThe field for thetotalDurationrecord component.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionintcount()Returns the value of thecountrecord component.final booleanIndicates whether some other object is "equal to" this one.fastest()Returns the value of thefastestrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thepercentilesNanosrecord component.Returns the value of thesecondSlowestrecord component.slowest()Returns the value of theslowestrecord component.static <T extends TimedStat>
 TimedStatSummary<T>final StringtoString()Returns a string representation of this record class.Returns the value of thetotalDurationrecord component.
- 
Field Details- 
fastestThe field for thefastestrecord component.
- 
slowestThe field for theslowestrecord component.
- 
secondSlowestThe field for thesecondSlowestrecord component.
- 
countprivate final int countThe field for thecountrecord component.
- 
percentilesNanosThe field for thepercentilesNanosrecord component.
- 
totalDurationThe field for thetotalDurationrecord component.
 
- 
- 
Constructor Details- 
TimedStatSummarypublic TimedStatSummary(T fastest, T slowest, @Nullable T secondSlowest, int count, Map<Integer, Double> percentilesNanos, Duration totalDuration) Creates an instance of aTimedStatSummaryrecord class.- Parameters:
- fastest- the value for the- fastestrecord component
- slowest- the value for the- slowestrecord component
- secondSlowest- the value for the- secondSlowestrecord component
- count- the value for the- countrecord component
- percentilesNanos- the value for the- percentilesNanosrecord component
- totalDuration- the value for the- totalDurationrecord component
 
 
- 
- 
Method Details- 
summary
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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 withObjects::equals(Object,Object); primitive components are compared with '=='.
- 
fastestReturns the value of thefastestrecord component.- Returns:
- the value of the fastestrecord component
 
- 
slowestReturns the value of theslowestrecord component.- Returns:
- the value of the slowestrecord component
 
- 
secondSlowestReturns the value of thesecondSlowestrecord component.- Returns:
- the value of the secondSlowestrecord component
 
- 
countpublic int count()Returns the value of thecountrecord component.- Returns:
- the value of the countrecord component
 
- 
percentilesNanosReturns the value of thepercentilesNanosrecord component.- Returns:
- the value of the percentilesNanosrecord component
 
- 
totalDurationReturns the value of thetotalDurationrecord component.- Returns:
- the value of the totalDurationrecord component
 
 
-