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 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 a HardwareStatisticData record class.
      Parameters:
      arch - the value for the arch record component
      os - the value for the os record component
      totalPhysicalMemory - the value for the totalPhysicalMemory record component
      logicalProcessors - the value for the logicalProcessors record component
      physicalProcessors - the value for the physicalProcessors record component
      processorMaxFreq - the value for the processorMaxFreq record component
      battery - the value for the battery record component
      graphicCard - the value for the graphicCard record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • arch

      Returns the value of the arch record component.
      Returns:
      the value of the arch record component
    • os

      Returns the value of the os record component.
      Returns:
      the value of the os record component
    • totalPhysicalMemory

      public long totalPhysicalMemory()
      Returns the value of the totalPhysicalMemory record component.
      Returns:
      the value of the totalPhysicalMemory record component
    • logicalProcessors

      public int logicalProcessors()
      Returns the value of the logicalProcessors record component.
      Returns:
      the value of the logicalProcessors record component
    • physicalProcessors

      public int physicalProcessors()
      Returns the value of the physicalProcessors record component.
      Returns:
      the value of the physicalProcessors record component
    • processorMaxFreq

      public long processorMaxFreq()
      Returns the value of the processorMaxFreq record component.
      Returns:
      the value of the processorMaxFreq record component
    • battery

      public boolean battery()
      Returns the value of the battery record component.
      Returns:
      the value of the battery record component
    • graphicCard

      public String graphicCard()
      Returns the value of the graphicCard record component.
      Returns:
      the value of the graphicCard record component