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 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.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
-
fastest
The field for thefastestrecord component. -
slowest
The field for theslowestrecord component. -
secondSlowest
The field for thesecondSlowestrecord component. -
count
private final int countThe field for thecountrecord component. -
percentilesNanos
The field for thepercentilesNanosrecord component. -
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
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. -
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. -
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 '=='. -
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
Returns the value of thepercentilesNanosrecord component.- Returns:
- the value of the
percentilesNanosrecord component
-
totalDuration
Returns the value of thetotalDurationrecord component.- Returns:
- the value of the
totalDurationrecord component
-