Package com.helix.experiments.gc
Record Class GcReport
java.lang.Object
java.lang.Record
com.helix.experiments.gc.GcReport
public record GcReport(String scenarioName, int initialObjectCount, int clearedCount, int retainedCount, double memoryAllocatedMb)
extends Record
Report summarizing GC stress experiment outcomes for Soft and Weak reference clearing.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theclearedCountrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of theinitialObjectCountrecord component.doubleReturns the value of thememoryAllocatedMbrecord component.intReturns the value of theretainedCountrecord component.Returns the value of thescenarioNamerecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
GcReport
public GcReport(String scenarioName, int initialObjectCount, int clearedCount, int retainedCount, double memoryAllocatedMb) Creates an instance of aGcReportrecord class.- Parameters:
scenarioName- the value for thescenarioNamerecord componentinitialObjectCount- the value for theinitialObjectCountrecord componentclearedCount- the value for theclearedCountrecord componentretainedCount- the value for theretainedCountrecord componentmemoryAllocatedMb- the value for thememoryAllocatedMbrecord component
-
-
Method Details
-
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 '=='. -
scenarioName
Returns the value of thescenarioNamerecord component.- Returns:
- the value of the
scenarioNamerecord component
-
initialObjectCount
public int initialObjectCount()Returns the value of theinitialObjectCountrecord component.- Returns:
- the value of the
initialObjectCountrecord component
-
clearedCount
public int clearedCount()Returns the value of theclearedCountrecord component.- Returns:
- the value of the
clearedCountrecord component
-
retainedCount
public int retainedCount()Returns the value of theretainedCountrecord component.- Returns:
- the value of the
retainedCountrecord component
-
memoryAllocatedMb
public double memoryAllocatedMb()Returns the value of thememoryAllocatedMbrecord component.- Returns:
- the value of the
memoryAllocatedMbrecord component
-