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 arm$a
intermediary net/minecraft/class_6528$class_6529
named net/minecraft/util/profiling/jfr/sample/PacketSample$Statistics
official a
intermediary comp_44
named count
official b
intermediary comp_45
named totalBytes
official c
intermediary comp_46
named topContributors
official d
intermediary comp_47
named duration
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final long
The field for thecount
record component.private final Duration
The field for theduration
record component.The field for thetopContributors
record component.private final long
The field for thetotalBytes
record component. -
Constructor Summary
ConstructorsConstructorDescriptionStatistics
(long long2, long long3, List<com.mojang.datafixers.util.Pair<String, Long>> list, Duration duration) -
Method Summary
Modifier and TypeMethodDescriptionlong
count()
Returns the value of thecount
record component.duration()
Returns the value of theduration
record component.final boolean
Indicates whether some other object is "equal to" this one.double
double
final int
hashCode()
Returns a hash code value for this object.Returns the value of thetopContributors
record component.final String
toString()
Returns a string representation of this record class.long
Returns the value of thetotalBytes
record component.
-
Field Details
-
count
private final long countThe field for thecount
record component. -
totalBytes
private final long totalBytesThe field for thetotalBytes
record component. -
topContributors
The field for thetopContributors
record component. -
duration
The field for theduration
record component.
-
-
Constructor Details
-
Statistics
-
-
Method Details
-
getCountPerSecond
public double getCountPerSecond()- Mappings:
Namespace Name Mixin selector official a
Larm$a;a()D
intermediary method_38052
Lnet/minecraft/class_6528$class_6529;method_38052()D
named getCountPerSecond
Lnet/minecraft/util/profiling/jfr/sample/PacketSample$Statistics;getCountPerSecond()D
-
getBytesPerSecond
public double getBytesPerSecond()- Mappings:
Namespace Name Mixin selector official b
Larm$a;b()D
intermediary method_38053
Lnet/minecraft/class_6528$class_6529;method_38053()D
named getBytesPerSecond
Lnet/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 thecount
record component.- Returns:
- the value of the
count
record component
-
totalBytes
public long totalBytes()Returns the value of thetotalBytes
record component.- Returns:
- the value of the
totalBytes
record component
-
topContributors
Returns the value of thetopContributors
record component.- Returns:
- the value of the
topContributors
record component
-
duration
Returns the value of theduration
record component.- Returns:
- the value of the
duration
record component
-