Package com.jk.core.util
Enum Class JKMachineInfo.HardWare
- All Implemented Interfaces:
Serializable
,Comparable<JKMachineInfo.HardWare>
,Constable
- Enclosing class:
- JKMachineInfo
This enum represents different types of hardware information that can be
retrieved.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRepresents the identifier associated with the computer as a whole.Represents the identifier associated with the hard disk.Represents the MAC address of a network interface.Represents the physical MAC address of a network interface. -
Method Summary
Modifier and TypeMethodDescriptiontoString()
Returns a string representation of the object.value()
This method retrieves the corresponding value for the hardware type.static JKMachineInfo.HardWare
Returns the enum constant of this class with the specified name.static JKMachineInfo.HardWare[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MAC
Represents the MAC address of a network interface. -
PHYSICAL_MAC
Represents the physical MAC address of a network interface. -
HARDDISK_ID
Represents the identifier associated with the hard disk. -
COMPUTER_ID
Represents the identifier associated with the computer as a whole.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
value
This method retrieves the corresponding value for the hardware type.- Returns:
- the value associated with the hardware type.
-
toString
Returns a string representation of the object.- Overrides:
toString
in classEnum<JKMachineInfo.HardWare>
- Returns:
- a string representation of the object.
-