Package com.helix.experiments.layout
Record Class LayoutReport
java.lang.Object
java.lang.Record
com.helix.experiments.layout.LayoutReport
public record LayoutReport(String className, long headerSizeBytes, long instanceSizeBytes, long paddingBytes, boolean compressedOopsEnabled, String printableLayout)
extends Record
Report summarizing JOL object memory layout, header sizes, padding, and compressed oops settings.
-
Constructor Summary
ConstructorsConstructorDescriptionLayoutReport(String className, long headerSizeBytes, long instanceSizeBytes, long paddingBytes, boolean compressedOopsEnabled, String printableLayout) Creates an instance of aLayoutReportrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theclassNamerecord component.booleanReturns the value of thecompressedOopsEnabledrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of theheaderSizeBytesrecord component.longReturns the value of theinstanceSizeBytesrecord component.longReturns the value of thepaddingBytesrecord component.Returns the value of theprintableLayoutrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
LayoutReport
public LayoutReport(String className, long headerSizeBytes, long instanceSizeBytes, long paddingBytes, boolean compressedOopsEnabled, String printableLayout) Creates an instance of aLayoutReportrecord class.- Parameters:
className- the value for theclassNamerecord componentheaderSizeBytes- the value for theheaderSizeBytesrecord componentinstanceSizeBytes- the value for theinstanceSizeBytesrecord componentpaddingBytes- the value for thepaddingBytesrecord componentcompressedOopsEnabled- the value for thecompressedOopsEnabledrecord componentprintableLayout- the value for theprintableLayoutrecord 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 '=='. -
className
Returns the value of theclassNamerecord component.- Returns:
- the value of the
classNamerecord component
-
headerSizeBytes
public long headerSizeBytes()Returns the value of theheaderSizeBytesrecord component.- Returns:
- the value of the
headerSizeBytesrecord component
-
instanceSizeBytes
public long instanceSizeBytes()Returns the value of theinstanceSizeBytesrecord component.- Returns:
- the value of the
instanceSizeBytesrecord component
-
paddingBytes
public long paddingBytes()Returns the value of thepaddingBytesrecord component.- Returns:
- the value of the
paddingBytesrecord component
-
compressedOopsEnabled
public boolean compressedOopsEnabled()Returns the value of thecompressedOopsEnabledrecord component.- Returns:
- the value of the
compressedOopsEnabledrecord component
-
printableLayout
Returns the value of theprintableLayoutrecord component.- Returns:
- the value of the
printableLayoutrecord component
-