Record Class ThreadAllocationStat
java.lang.Object
java.lang.Record
net.minecraft.util.profiling.jfr.stats.ThreadAllocationStat
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionThreadAllocationStat(Instant timestamp, String threadName, long totalBytes) Creates an instance of aThreadAllocationStatrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.static ThreadAllocationStatfrom(RecordedEvent p_185804_) final inthashCode()Returns a hash code value for this object.static ThreadAllocationStat.Summarysummary(List<ThreadAllocationStat> p_185798_) Returns the value of thethreadNamerecord component.Returns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of thetotalBytesrecord component.
-
Field Details
-
timestamp
The field for thetimestamprecord component. -
threadName
The field for thethreadNamerecord component. -
totalBytes
private final long totalBytesThe field for thetotalBytesrecord component. -
UNKNOWN_THREAD
- See Also:
-
-
Constructor Details
-
ThreadAllocationStat
Creates an instance of aThreadAllocationStatrecord class.- Parameters:
timestamp- the value for thetimestamprecord componentthreadName- the value for thethreadNamerecord componenttotalBytes- the value for thetotalBytesrecord component
-
-
Method Details
-
from
-
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 '=='. -
timestamp
Returns the value of thetimestamprecord component.- Returns:
- the value of the
timestamprecord component
-
threadName
Returns the value of thethreadNamerecord component.- Returns:
- the value of the
threadNamerecord component
-
totalBytes
public long totalBytes()Returns the value of thetotalBytesrecord component.- Returns:
- the value of the
totalBytesrecord component
-