Record Class FileIOStat.Summary
java.lang.Object
java.lang.Record
net.minecraft.util.profiling.jfr.stats.FileIOStat.Summary
- Enclosing class:
- FileIOStat
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final doubleThe field for thebytesPerSecondrecord component.private final longThe field for thecountsrecord component.private final doubleThe field for thecountsPerSecondrecord component.private final DurationThe field for thetimeSpentInIOrecord component.The field for thetopTenContributorsByTotalBytesrecord component.private final longThe field for thetotalBytesrecord component.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiondoubleReturns the value of thebytesPerSecondrecord component.longcounts()Returns the value of thecountsrecord component.doubleReturns the value of thecountsPerSecondrecord 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 thetimeSpentInIOrecord component.Returns the value of thetopTenContributorsByTotalBytesrecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of thetotalBytesrecord component.
- 
Field Details- 
totalBytesprivate final long totalBytesThe field for thetotalBytesrecord component.
- 
bytesPerSecondprivate final double bytesPerSecondThe field for thebytesPerSecondrecord component.
- 
countsprivate final long countsThe field for thecountsrecord component.
- 
countsPerSecondprivate final double countsPerSecondThe field for thecountsPerSecondrecord component.
- 
timeSpentInIOThe field for thetimeSpentInIOrecord component.
- 
topTenContributorsByTotalBytesThe field for thetopTenContributorsByTotalBytesrecord component.
 
- 
- 
Constructor Details- 
Summarypublic Summary(long totalBytes, double bytesPerSecond, long counts, double countsPerSecond, Duration timeSpentInIO, List<com.mojang.datafixers.util.Pair<String, Long>> topTenContributorsByTotalBytes) Creates an instance of aSummaryrecord class.- Parameters:
- totalBytes- the value for the- totalBytesrecord component
- bytesPerSecond- the value for the- bytesPerSecondrecord component
- counts- the value for the- countsrecord component
- countsPerSecond- the value for the- countsPerSecondrecord component
- timeSpentInIO- the value for the- timeSpentInIOrecord component
- topTenContributorsByTotalBytes- the value for the- topTenContributorsByTotalBytesrecord component
 
 
- 
- 
Method Details- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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 '=='.
- 
totalBytespublic long totalBytes()Returns the value of thetotalBytesrecord component.- Returns:
- the value of the totalBytesrecord component
 
- 
bytesPerSecondpublic double bytesPerSecond()Returns the value of thebytesPerSecondrecord component.- Returns:
- the value of the bytesPerSecondrecord component
 
- 
countspublic long counts()Returns the value of thecountsrecord component.- Returns:
- the value of the countsrecord component
 
- 
countsPerSecondpublic double countsPerSecond()Returns the value of thecountsPerSecondrecord component.- Returns:
- the value of the countsPerSecondrecord component
 
- 
timeSpentInIOReturns the value of thetimeSpentInIOrecord component.- Returns:
- the value of the timeSpentInIOrecord component
 
- 
topTenContributorsByTotalBytesReturns the value of thetopTenContributorsByTotalBytesrecord component.- Returns:
- the value of the topTenContributorsByTotalBytesrecord component
 
 
-