Enum Class JKMachineInfo.HardWare

java.lang.Object
java.lang.Enum<JKMachineInfo.HardWare>
com.jk.core.util.JKMachineInfo.HardWare
All Implemented Interfaces:
Serializable, Comparable<JKMachineInfo.HardWare>, Constable
Enclosing class:
JKMachineInfo

public static enum JKMachineInfo.HardWare extends Enum<JKMachineInfo.HardWare>
This enum represents different types of hardware information that can be retrieved.
  • Enum Constant Details

    • MAC

      public static final JKMachineInfo.HardWare MAC
      Represents the MAC address of a network interface.
    • PHYSICAL_MAC

      public static final JKMachineInfo.HardWare PHYSICAL_MAC
      Represents the physical MAC address of a network interface.
    • HARDDISK_ID

      public static final JKMachineInfo.HardWare HARDDISK_ID
      Represents the identifier associated with the hard disk.
    • COMPUTER_ID

      public static final JKMachineInfo.HardWare COMPUTER_ID
      Represents the identifier associated with the computer as a whole.
  • Method Details

    • values

      public static JKMachineInfo.HardWare[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static JKMachineInfo.HardWare valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • value

      public String value()
      This method retrieves the corresponding value for the hardware type.
      Returns:
      the value associated with the hardware type.
    • toString

      public String toString()
      Returns a string representation of the object.
      Overrides:
      toString in class Enum<JKMachineInfo.HardWare>
      Returns:
      a string representation of the object.