Enum Class OptType

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

public enum OptType extends Enum<OptType>
操作人类别
Since:
2022-11-14 下午 09:38
Author:
xyb
  • Enum Constant Details

    • OTHER

      public static final OptType OTHER
      其它
    • MANAGE

      public static final OptType MANAGE
      后台web用户
    • MOBILE

      public static final OptType MOBILE
      手机端用户
  • Field Details

    • code

      private final String code
      code
  • Constructor Details

    • OptType

      private OptType(String code)
  • Method Details

    • values

      public static OptType[] 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 OptType 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()
      获取 code
      Returns:
      code code值