Enum Class ServiceEnums

java.lang.Object
java.lang.Enum<ServiceEnums>
cn.sinozg.applet.common.utils.ServiceEnums
All Implemented Interfaces:
Serializable, Comparable<ServiceEnums>, Constable

enum ServiceEnums extends Enum<ServiceEnums>
服务器类型
Since:
2025-03-25 16:04:09
Author:
xyb
  • Enum Constant Details

    • WIN

      public static final ServiceEnums WIN
      windows
    • MAC_OS

      public static final ServiceEnums MAC_OS
      MAC OS macos 没有cpu 序列号,取硬件的uuid
    • LINUX

      public static final ServiceEnums LINUX
      Linux
  • Field Details

    • code

      private final String code
      编号
    • cpuCommand

      private final String cpuCommand
      cpu 指令
    • cpuKey

      private final String cpuKey
      cpu 关键字
    • mbCommand

      private final String mbCommand
      主板 指令
    • mbKey

      private final String mbKey
      主板 关键字
    • index

      private final Integer index
      数据下标
    • cpuHandle

      private final Function<String,String> cpuHandle
      cpu 数据处理
  • Constructor Details

  • Method Details

    • values

      public static ServiceEnums[] 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 ServiceEnums 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
    • getCode

      public String getCode()
    • getCpuCommand

      public String getCpuCommand()
    • getCpuKey

      public String getCpuKey()
    • getMbCommand

      public String getMbCommand()
    • getMbKey

      public String getMbKey()
    • getIndex

      public Integer getIndex()
    • getCpuHandle

      public Function<String,String> getCpuHandle()
    • serviceEnums

      public static ServiceEnums serviceEnums()