Record Class FileIOStat
java.lang.Object
java.lang.Record
net.minecraft.util.profiling.jfr.stats.FileIOStat
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
ConstructorDescriptionFileIOStat
(Duration duration, String path, long bytes) Creates an instance of aFileIOStat
record class. -
Method Summary
Modifier and TypeMethodDescriptionlong
bytes()
Returns the value of thebytes
record component.duration()
Returns the value of theduration
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.path()
Returns the value of thepath
record component.static FileIOStat.Summary
summary
(Duration p_185641_, List<FileIOStat> p_185642_) final String
toString()
Returns a string representation of this record class.
-
Field Details
-
duration
The field for theduration
record component. -
path
The field for thepath
record component. -
bytes
private final long bytesThe field for thebytes
record component.
-
-
Constructor Details
-
FileIOStat
Creates an instance of aFileIOStat
record class.- Parameters:
duration
- the value for theduration
record componentpath
- the value for thepath
record componentbytes
- the value for thebytes
record 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 theduration
record component.- Returns:
- the value of the
duration
record component
-
path
Returns the value of thepath
record component.- Returns:
- the value of the
path
record component
-
bytes
public long bytes()Returns the value of thebytes
record component.- Returns:
- the value of the
bytes
record component
-