Record Class LongRunningSampleStatistics<T extends LongRunningSample>
java.lang.Object
java.lang.Record
net.minecraft.util.profiling.jfr.sample.LongRunningSampleStatistics<T>
- Record Components:
fastestSample-slowestSample-secondSlowestSample-count-quantiles-totalDuration-
public record LongRunningSampleStatistics<T extends LongRunningSample>(T extends LongRunningSample fastestSample, T extends LongRunningSample slowestSample, T extends LongRunningSample secondSlowestSample, int count, Map<Integer,Double> quantiles, Duration totalDuration)
extends Record
- Mappings:
Namespace Name official bbointermediary net/minecraft/class_6535named net/minecraft/util/profiling/jfr/sample/LongRunningSampleStatisticsofficial aintermediary comp_54named fastestSampleofficial bintermediary comp_55named slowestSampleofficial cintermediary comp_56named secondSlowestSampleofficial dintermediary comp_57named countofficial eintermediary comp_58named quantilesofficial fintermediary comp_59named totalDuration
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for thecountrecord component.private final TThe field for thefastestSamplerecord component.The field for thequantilesrecord component.private final TThe field for thesecondSlowestSamplerecord component.private final TThe field for theslowestSamplerecord 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.Returns the value of thefastestSamplerecord component.static <T extends LongRunningSample>
LongRunningSampleStatistics<T>fromSamples(List<T> samples) final inthashCode()Returns a hash code value for this object.Returns the value of thequantilesrecord component.Returns the value of thesecondSlowestSamplerecord component.Returns the value of theslowestSamplerecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetotalDurationrecord component.
-
Field Details
-
fastestSample
The field for thefastestSamplerecord component. -
slowestSample
The field for theslowestSamplerecord component. -
secondSlowestSample
The field for thesecondSlowestSamplerecord component. -
count
private final int countThe field for thecountrecord component. -
quantiles
The field for thequantilesrecord component. -
totalDuration
The field for thetotalDurationrecord component.
-
-
Constructor Details
-
LongRunningSampleStatistics
-
-
Method Details
-
fromSamples
public static <T extends LongRunningSample> LongRunningSampleStatistics<T> fromSamples(List<T> samples) - Mappings:
Namespace Name Mixin selector official aLbbo;a(Ljava/util/List;)Lbbo;intermediary method_38060Lnet/minecraft/class_6535;method_38060(Ljava/util/List;)Lnet/minecraft/class_6535;named fromSamplesLnet/minecraft/util/profiling/jfr/sample/LongRunningSampleStatistics;fromSamples(Ljava/util/List;)Lnet/minecraft/util/profiling/jfr/sample/LongRunningSampleStatistics;
-
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 '=='. -
fastestSample
Returns the value of thefastestSamplerecord component.- Returns:
- the value of the
fastestSamplerecord component
-
slowestSample
Returns the value of theslowestSamplerecord component.- Returns:
- the value of the
slowestSamplerecord component
-
secondSlowestSample
Returns the value of thesecondSlowestSamplerecord component.- Returns:
- the value of the
secondSlowestSamplerecord component
-
count
public int count()Returns the value of thecountrecord component.- Returns:
- the value of the
countrecord component
-
quantiles
Returns the value of thequantilesrecord component.- Returns:
- the value of the
quantilesrecord component
-
totalDuration
Returns the value of thetotalDurationrecord component.- Returns:
- the value of the
totalDurationrecord component
-