Package com.helix.agent.jol
Record Class MemoryAnalysisReport
java.lang.Object
java.lang.Record
com.helix.agent.jol.MemoryAnalysisReport
-
Constructor Summary
ConstructorsConstructorDescriptionMemoryAnalysisReport(String className, long instanceSizeShallow, long instanceSizeDeep, long headerSize, long lossPaddingBytes, boolean compressedOops, String printableLayout) Creates an instance of aMemoryAnalysisReportrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theclassNamerecord component.booleanReturns the value of thecompressedOopsrecord 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 theheaderSizerecord component.longReturns the value of theinstanceSizeDeeprecord component.longReturns the value of theinstanceSizeShallowrecord component.longReturns the value of thelossPaddingBytesrecord component.Returns the value of theprintableLayoutrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MemoryAnalysisReport
public MemoryAnalysisReport(String className, long instanceSizeShallow, long instanceSizeDeep, long headerSize, long lossPaddingBytes, boolean compressedOops, String printableLayout) Creates an instance of aMemoryAnalysisReportrecord class.- Parameters:
className- the value for theclassNamerecord componentinstanceSizeShallow- the value for theinstanceSizeShallowrecord componentinstanceSizeDeep- the value for theinstanceSizeDeeprecord componentheaderSize- the value for theheaderSizerecord componentlossPaddingBytes- the value for thelossPaddingBytesrecord componentcompressedOops- the value for thecompressedOopsrecord 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
-
instanceSizeShallow
public long instanceSizeShallow()Returns the value of theinstanceSizeShallowrecord component.- Returns:
- the value of the
instanceSizeShallowrecord component
-
instanceSizeDeep
public long instanceSizeDeep()Returns the value of theinstanceSizeDeeprecord component.- Returns:
- the value of the
instanceSizeDeeprecord component
-
headerSize
public long headerSize()Returns the value of theheaderSizerecord component.- Returns:
- the value of the
headerSizerecord component
-
lossPaddingBytes
public long lossPaddingBytes()Returns the value of thelossPaddingBytesrecord component.- Returns:
- the value of the
lossPaddingBytesrecord component
-
compressedOops
public boolean compressedOops()Returns the value of thecompressedOopsrecord component.- Returns:
- the value of the
compressedOopsrecord component
-
printableLayout
Returns the value of theprintableLayoutrecord component.- Returns:
- the value of the
printableLayoutrecord component
-