Record Class PacketSample.Statistics
java.lang.Object
java.lang.Record
net.minecraft.util.profiling.jfr.sample.PacketSample.Statistics
- Record Components:
count-totalBytes-topContributors-duration-
- Enclosing class:
- PacketSample
public static record PacketSample.Statistics(long count, long totalBytes, List<com.mojang.datafixers.util.Pair<String,Long>> topContributors, Duration duration)
extends Record
- Mappings:
Namespace Name official arz$aintermediary net/minecraft/class_6528$class_6529named net/minecraft/util/profiling/jfr/sample/PacketSample$Statisticsofficial aintermediary comp_44named countofficial bintermediary comp_45named totalBytesofficial cintermediary comp_46named topContributorsofficial dintermediary comp_47named duration
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final longThe field for thecountrecord component.private final DurationThe field for thedurationrecord component.The field for thetopContributorsrecord component.private final longThe field for thetotalBytesrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionStatistics(long long2, long long3, List<com.mojang.datafixers.util.Pair<String, Long>> list, Duration duration) -
Method Summary
Modifier and TypeMethodDescriptionlongcount()Returns the value of thecountrecord component.duration()Returns the value of thedurationrecord component.final booleanIndicates whether some other object is "equal to" this one.doubledoublefinal inthashCode()Returns a hash code value for this object.Returns the value of thetopContributorsrecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of thetotalBytesrecord component.
-
Field Details
-
count
private final long countThe field for thecountrecord component. -
totalBytes
private final long totalBytesThe field for thetotalBytesrecord component. -
topContributors
The field for thetopContributorsrecord component. -
duration
The field for thedurationrecord component.
-
-
Constructor Details
-
Statistics
-
-
Method Details
-
getCountPerSecond
public double getCountPerSecond()- Mappings:
Namespace Name Mixin selector official aLarz$a;a()Dintermediary method_38052Lnet/minecraft/class_6528$class_6529;method_38052()Dnamed getCountPerSecondLnet/minecraft/util/profiling/jfr/sample/PacketSample$Statistics;getCountPerSecond()D
-
getBytesPerSecond
public double getBytesPerSecond()- Mappings:
Namespace Name Mixin selector official bLarz$a;b()Dintermediary method_38053Lnet/minecraft/class_6528$class_6529;method_38053()Dnamed getBytesPerSecondLnet/minecraft/util/profiling/jfr/sample/PacketSample$Statistics;getBytesPerSecond()D
-
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 '=='. -
count
public long count()Returns the value of thecountrecord component.- Returns:
- the value of the
countrecord component
-
totalBytes
public long totalBytes()Returns the value of thetotalBytesrecord component.- Returns:
- the value of the
totalBytesrecord component
-
topContributors
Returns the value of thetopContributorsrecord component.- Returns:
- the value of the
topContributorsrecord component
-
duration
Returns the value of thedurationrecord component.- Returns:
- the value of the
durationrecord component
-