java.lang.Object
java.lang.Record
eu.hansolo.toolbox.Helper.SystemSummary
- Enclosing class:
- Helper
public static record Helper.SystemSummary(Constants.Architecture architecture, int logicalCores, int physicalCores, Helper.MemInfo memInfo, Helper.HeapInfo heapInfo, List<Helper.RootInfo> rootInfos, Constants.OperatingSystem operatingSystem, Helper.OperatingSystemInfo operatingSystemInfo, Constants.OperatingMode operatingMode, Helper.JvmInfo jvmInfo)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionSystemSummary(Constants.Architecture architecture, int logicalCores, int physicalCores, Helper.MemInfo memInfo, Helper.HeapInfo heapInfo, List<Helper.RootInfo> rootInfos, Constants.OperatingSystem operatingSystem, Helper.OperatingSystemInfo operatingSystemInfo, Constants.OperatingMode operatingMode, Helper.JvmInfo jvmInfo) Creates an instance of aSystemSummaryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thearchitecturerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.heapInfo()Returns the value of theheapInforecord component.jvmInfo()Returns the value of thejvmInforecord component.intReturns the value of thelogicalCoresrecord component.memInfo()Returns the value of thememInforecord component.Returns the value of theoperatingModerecord component.Returns the value of theoperatingSystemrecord component.Returns the value of theoperatingSystemInforecord component.intReturns the value of thephysicalCoresrecord component.Returns the value of therootInfosrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
SystemSummary
public SystemSummary(Constants.Architecture architecture, int logicalCores, int physicalCores, Helper.MemInfo memInfo, Helper.HeapInfo heapInfo, List<Helper.RootInfo> rootInfos, Constants.OperatingSystem operatingSystem, Helper.OperatingSystemInfo operatingSystemInfo, Constants.OperatingMode operatingMode, Helper.JvmInfo jvmInfo) Creates an instance of aSystemSummaryrecord class.- Parameters:
architecture- the value for thearchitecturerecord componentlogicalCores- the value for thelogicalCoresrecord componentphysicalCores- the value for thephysicalCoresrecord componentmemInfo- the value for thememInforecord componentheapInfo- the value for theheapInforecord componentrootInfos- the value for therootInfosrecord componentoperatingSystem- the value for theoperatingSystemrecord componentoperatingSystemInfo- the value for theoperatingSystemInforecord componentoperatingMode- the value for theoperatingModerecord componentjvmInfo- the value for thejvmInforecord component
-
-
Method Details
-
toBeautifiedString
-
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 '=='. -
architecture
Returns the value of thearchitecturerecord component.- Returns:
- the value of the
architecturerecord component
-
logicalCores
public int logicalCores()Returns the value of thelogicalCoresrecord component.- Returns:
- the value of the
logicalCoresrecord component
-
physicalCores
public int physicalCores()Returns the value of thephysicalCoresrecord component.- Returns:
- the value of the
physicalCoresrecord component
-
memInfo
Returns the value of thememInforecord component.- Returns:
- the value of the
memInforecord component
-
heapInfo
Returns the value of theheapInforecord component.- Returns:
- the value of the
heapInforecord component
-
rootInfos
Returns the value of therootInfosrecord component.- Returns:
- the value of the
rootInfosrecord component
-
operatingSystem
Returns the value of theoperatingSystemrecord component.- Returns:
- the value of the
operatingSystemrecord component
-
operatingSystemInfo
Returns the value of theoperatingSystemInforecord component.- Returns:
- the value of the
operatingSystemInforecord component
-
operatingMode
Returns the value of theoperatingModerecord component.- Returns:
- the value of the
operatingModerecord component
-
jvmInfo
Returns the value of thejvmInforecord component.- Returns:
- the value of the
jvmInforecord component
-