Package cn.sinozg.applet.common.utils
Enum Class ServiceEnums
- All Implemented Interfaces:
Serializable,Comparable<ServiceEnums>,Constable
服务器类型
- Since:
- 2025-03-25 16:04:09
- Author:
- xyb
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateServiceEnums(String code, String cpuCommand, String mbCommand, int index) privateServiceEnums(String code, String command, String cpuKey, String mbKey) privateServiceEnums(String code, String cpuCommand, String cpuKey, String mbCommand, String mbKey, Integer index, Function<String, String> cpuHandle) -
Method Summary
Modifier and TypeMethodDescriptiongetCode()getIndex()getMbKey()static ServiceEnumsstatic ServiceEnumsReturns the enum constant of this class with the specified name.static ServiceEnums[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
WIN
windows -
MAC_OS
MAC OS macos 没有cpu 序列号,取硬件的uuid -
LINUX
Linux
-
-
Field Details
-
code
编号 -
cpuCommand
cpu 指令 -
cpuKey
cpu 关键字 -
mbCommand
主板 指令 -
mbKey
主板 关键字 -
index
数据下标 -
cpuHandle
cpu 数据处理
-
-
Constructor Details
-
ServiceEnums
-
ServiceEnums
-
ServiceEnums
-
-
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
-
getCode
-
getCpuCommand
-
getCpuKey
-
getMbCommand
-
getMbKey
-
getIndex
-
getCpuHandle
-
serviceEnums
-