Record Class TimedStatSummary<T extends TimedStat>
java.lang.Object
java.lang.Record
net.minecraft.util.profiling.jfr.stats.TimedStatSummary<T>
-
Field Summary
Modifier and TypeFieldDescriptionprivate final int
The field for thecount
record component.private final T
The field for thefastest
record component.The field for thepercentilesNanos
record component.private final T
The field for thesecondSlowest
record component.private final T
The field for theslowest
record component.private final Duration
The field for thetotalDuration
record component. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
count()
Returns the value of thecount
record component.final boolean
Indicates whether some other object is "equal to" this one.fastest()
Returns the value of thefastest
record component.final int
hashCode()
Returns a hash code value for this object.Returns the value of thepercentilesNanos
record component.Returns the value of thesecondSlowest
record component.slowest()
Returns the value of theslowest
record component.static <T extends TimedStat>
TimedStatSummary<T>final String
toString()
Returns a string representation of this record class.Returns the value of thetotalDuration
record component.
-
Field Details
-
fastest
The field for thefastest
record component. -
slowest
The field for theslowest
record component. -
secondSlowest
The field for thesecondSlowest
record component. -
count
private final int countThe field for thecount
record component. -
percentilesNanos
The field for thepercentilesNanos
record component. -
totalDuration
The field for thetotalDuration
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 aTimedStatSummary
record class.- Parameters:
fastest
- the value for thefastest
record componentslowest
- the value for theslowest
record componentsecondSlowest
- the value for thesecondSlowest
record componentcount
- the value for thecount
record componentpercentilesNanos
- the value for thepercentilesNanos
record componenttotalDuration
- the value for thetotalDuration
record 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 thefastest
record component.- Returns:
- the value of the
fastest
record component
-
slowest
Returns the value of theslowest
record component.- Returns:
- the value of the
slowest
record component
-
secondSlowest
Returns the value of thesecondSlowest
record component.- Returns:
- the value of the
secondSlowest
record component
-
count
public int count()Returns the value of thecount
record component.- Returns:
- the value of the
count
record component
-
percentilesNanos
Returns the value of thepercentilesNanos
record component.- Returns:
- the value of the
percentilesNanos
record component
-
totalDuration
Returns the value of thetotalDuration
record component.- Returns:
- the value of the
totalDuration
record component
-