Record Class HardwareVerificationFeatureAPI.HardwareStatisticData
java.lang.Object
java.lang.Record
pro.gravit.launcher.core.api.features.HardwareVerificationFeatureAPI.HardwareStatisticData
- Enclosing interface:
HardwareVerificationFeatureAPI
public static record HardwareVerificationFeatureAPI.HardwareStatisticData(HardwareVerificationFeatureAPI.Arch arch, HardwareVerificationFeatureAPI.Os os, long totalPhysicalMemory, int logicalProcessors, int physicalProcessors, long processorMaxFreq, boolean battery, String graphicCard)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionHardwareStatisticData(HardwareVerificationFeatureAPI.Arch arch, HardwareVerificationFeatureAPI.Os os, long totalPhysicalMemory, int logicalProcessors, int physicalProcessors, long processorMaxFreq, boolean battery, String graphicCard) Creates an instance of aHardwareStatisticDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionarch()Returns the value of thearchrecord component.booleanbattery()Returns the value of thebatteryrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thegraphicCardrecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of thelogicalProcessorsrecord component.os()Returns the value of theosrecord component.intReturns the value of thephysicalProcessorsrecord component.longReturns the value of theprocessorMaxFreqrecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of thetotalPhysicalMemoryrecord component.
-
Constructor Details
-
HardwareStatisticData
public HardwareStatisticData(HardwareVerificationFeatureAPI.Arch arch, HardwareVerificationFeatureAPI.Os os, long totalPhysicalMemory, int logicalProcessors, int physicalProcessors, long processorMaxFreq, boolean battery, String graphicCard) Creates an instance of aHardwareStatisticDatarecord class.- Parameters:
arch- the value for thearchrecord componentos- the value for theosrecord componenttotalPhysicalMemory- the value for thetotalPhysicalMemoryrecord componentlogicalProcessors- the value for thelogicalProcessorsrecord componentphysicalProcessors- the value for thephysicalProcessorsrecord componentprocessorMaxFreq- the value for theprocessorMaxFreqrecord componentbattery- the value for thebatteryrecord componentgraphicCard- the value for thegraphicCardrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
arch
Returns the value of thearchrecord component.- Returns:
- the value of the
archrecord component
-
os
Returns the value of theosrecord component.- Returns:
- the value of the
osrecord component
-
totalPhysicalMemory
public long totalPhysicalMemory()Returns the value of thetotalPhysicalMemoryrecord component.- Returns:
- the value of the
totalPhysicalMemoryrecord component
-
logicalProcessors
public int logicalProcessors()Returns the value of thelogicalProcessorsrecord component.- Returns:
- the value of the
logicalProcessorsrecord component
-
physicalProcessors
public int physicalProcessors()Returns the value of thephysicalProcessorsrecord component.- Returns:
- the value of the
physicalProcessorsrecord component
-
processorMaxFreq
public long processorMaxFreq()Returns the value of theprocessorMaxFreqrecord component.- Returns:
- the value of the
processorMaxFreqrecord component
-
battery
public boolean battery()Returns the value of thebatteryrecord component.- Returns:
- the value of the
batteryrecord component
-
graphicCard
Returns the value of thegraphicCardrecord component.- Returns:
- the value of the
graphicCardrecord component
-