Record Class FileIOStat
java.lang.Object
java.lang.Record
net.minecraft.util.profiling.jfr.stats.FileIOStat
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFileIOStat(Duration duration, @Nullable String path, long bytes) Creates an instance of aFileIOStatrecord class. -
Method Summary
Modifier 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.@Nullable Stringpath()Returns the value of thepathrecord component.static FileIOStat.Summarysummary(Duration recordingDuration, List<FileIOStat> ioStats) final StringtoString()Returns a string representation of this record class.
-
Field Details
-
duration
The field for thedurationrecord component. -
path
The field for thepathrecord component. -
bytes
private final long bytesThe field for thebytesrecord component.
-
-
Constructor Details
-
FileIOStat
-
-
Method Details
-
summary
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
duration
Returns the value of thedurationrecord component.- Returns:
- the value of the
durationrecord component
-
path
Returns the value of thepathrecord component.- Returns:
- the value of the
pathrecord component
-
bytes
public long bytes()Returns the value of thebytesrecord component.- Returns:
- the value of the
bytesrecord component
-