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, 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.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
-
duration
The field for thedurationrecord component. -
path
The field for thepathrecord component. -
bytes
private final long bytesThe field for thebytesrecord component.
-
-
Constructor Details
-
FileIOStat
Creates an instance of aFileIOStatrecord class.- Parameters:
duration- the value for thedurationrecord componentpath- the value for thepathrecord componentbytes- the value for thebytesrecord component
-
-
Method Details
-
summary
-
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 '=='. -
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
-