Record Class FileIOStat
java.lang.Object
java.lang.Record
net.minecraft.util.profiling.jfr.stats.FileIOStat
- 
Nested Class SummaryNested Classes
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionFileIOStat(Duration duration, String path, long bytes) Creates an instance of aFileIOStatrecord class.
- 
Method SummaryModifier and TypeMethodDescriptionlongbytes()Returns the value of thebytesrecord component.duration()Returns the value of thedurationrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.path()Returns the value of thepathrecord component.static FileIOStat.Summarysummary(Duration p_185641_, List<FileIOStat> p_185642_) final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
durationThe field for thedurationrecord component.
- 
pathThe field for thepathrecord component.
- 
bytesprivate final long bytesThe field for thebytesrecord component.
 
- 
- 
Constructor Details- 
FileIOStatCreates an instance of aFileIOStatrecord class.- Parameters:
- duration- the value for the- durationrecord component
- path- the value for the- pathrecord component
- bytes- the value for the- bytesrecord component
 
 
- 
- 
Method Details- 
summary
- 
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 '=='.
- 
durationReturns the value of thedurationrecord component.- Returns:
- the value of the durationrecord component
 
- 
pathReturns the value of thepathrecord component.- Returns:
- the value of the pathrecord component
 
- 
bytespublic long bytes()Returns the value of thebytesrecord component.- Returns:
- the value of the bytesrecord component
 
 
-