Record Class FileIoSample.Statistics
java.lang.Object
java.lang.Record
net.minecraft.util.profiling.jfr.sample.FileIoSample.Statistics
- Record Components:
totalBytes-bytesPerSecond-count-countPerSecond-totalDuration-topContributors-
- Enclosing class:
FileIoSample
public static record FileIoSample.Statistics(long totalBytes, double bytesPerSecond, long count, double countPerSecond, Duration totalDuration, List<com.mojang.datafixers.util.Pair<String,Long>> topContributors)
extends Record
- Mappings:
Namespace Name named net/minecraft/util/profiling/jfr/sample/FileIoSample$Statisticsintermediary net/minecraft/class_6523$class_6524official boc$anamed totalBytesintermediary comp_28official anamed bytesPerSecondintermediary comp_29official bnamed countintermediary comp_30official cnamed countPerSecondintermediary comp_31official dnamed totalDurationintermediary comp_32official enamed topContributorsintermediary comp_33official f
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final doubleThe field for thebytesPerSecondrecord component.private final longThe field for thecountrecord component.private final doubleThe field for thecountPerSecondrecord component.The field for thetopContributorsrecord component.private final longThe field for thetotalBytesrecord component.private final DurationThe field for thetotalDurationrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionStatistics(long long2, double double2, long long3, double double3, Duration duration, List<com.mojang.datafixers.util.Pair<String, Long>> list) -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of thebytesPerSecondrecord component.longcount()Returns the value of thecountrecord component.doubleReturns the value of thecountPerSecondrecord component.final booleanIndicates whether some other object is "equal to" this one.final 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.Returns the value of thetotalDurationrecord component.
-
Field Details
-
totalBytes
private final long totalBytesThe field for thetotalBytesrecord component. -
bytesPerSecond
private final double bytesPerSecondThe field for thebytesPerSecondrecord component. -
count
private final long countThe field for thecountrecord component. -
countPerSecond
private final double countPerSecondThe field for thecountPerSecondrecord component. -
totalDuration
The field for thetotalDurationrecord component. -
topContributors
The field for thetopContributorsrecord component.
-
-
Constructor Details
-
Statistics
-
-
Method Details
-
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 '=='. -
totalBytes
public long totalBytes()Returns the value of thetotalBytesrecord component.- Returns:
- the value of the
totalBytesrecord component
-
bytesPerSecond
public double bytesPerSecond()Returns the value of thebytesPerSecondrecord component.- Returns:
- the value of the
bytesPerSecondrecord component
-
count
public long count()Returns the value of thecountrecord component.- Returns:
- the value of the
countrecord component
-
countPerSecond
public double countPerSecond()Returns the value of thecountPerSecondrecord component.- Returns:
- the value of the
countPerSecondrecord component
-
totalDuration
Returns the value of thetotalDurationrecord component.- Returns:
- the value of the
totalDurationrecord component
-
topContributors
Returns the value of thetopContributorsrecord component.- Returns:
- the value of the
topContributorsrecord component
-