Record Class TimedStatSummary<T extends TimedStat>
java.lang.Object
java.lang.Record
net.minecraft.util.profiling.jfr.stats.TimedStatSummary<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for thecountrecord component.private final TThe field for thefastestrecord component.The field for thepercentilesNanosrecord component.private final @Nullable TThe field for thesecondSlowestrecord component.private final TThe field for theslowestrecord component.private final DurationThe field for thetotalDurationrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier 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.@Nullable TReturns the value of thesecondSlowestrecord component.slowest()Returns the value of theslowestrecord component.static <T extends TimedStat>
Optional<TimedStatSummary<T>> final StringtoString()Returns a string representation of this record class.Returns the value of thetotalDurationrecord component.
-
Field Details
-
fastest
-
slowest
-
secondSlowest
-
count
private final int countThe field for thecountrecord component. -
percentilesNanos
-
totalDuration
The field for thetotalDurationrecord 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 aTimedStatSummaryrecord class.- Parameters:
fastest- the value for thefastestrecord componentslowest- the value for theslowestrecord componentsecondSlowest- the value for thesecondSlowestrecord componentcount- the value for thecountrecord componentpercentilesNanos- the value for thepercentilesNanosrecord componenttotalDuration- the value for thetotalDurationrecord component
-
-
Method Details
-
summary
-
toString
-
hashCode
-
equals
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 withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
fastest
Returns the value of thefastestrecord component.- Returns:
- the value of the
fastestrecord component
-
slowest
Returns the value of theslowestrecord component.- Returns:
- the value of the
slowestrecord component
-
secondSlowest
Returns the value of thesecondSlowestrecord component.- Returns:
- the value of the
secondSlowestrecord component
-
count
public int count()Returns the value of thecountrecord component.- Returns:
- the value of the
countrecord component
-
percentilesNanos
-
totalDuration
Returns the value of thetotalDurationrecord component.- Returns:
- the value of the
totalDurationrecord component
-