Enum Class ManagerAdminEnum

java.lang.Object
java.lang.Enum<ManagerAdminEnum>
net.mingsoft.basic.constant.e.ManagerAdminEnum
All Implemented Interfaces:
Serializable, Comparable<ManagerAdminEnum>, Constable, net.mingsoft.base.constant.e.BaseEnum

public enum ManagerAdminEnum extends Enum<ManagerAdminEnum> implements net.mingsoft.base.constant.e.BaseEnum
管理员类型枚举
Version:
版本号:100-000-000
创建日期:2012-03-15
历史修订:
2022-1-4 增加SUPERADMIN枚举,用于区分站群管理员权限
Author:
ms dev group
  • Enum Constant Details

    • SUPER

      public static final ManagerAdminEnum SUPER
      超级管理员
    • SUPERADMIN

      public static final ManagerAdminEnum SUPERADMIN
      站群超级管理员,只有在启用了站群才有用
  • Method Details

    • values

      public static ManagerAdminEnum[] 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 ManagerAdminEnum 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
    • toInt

      public int toInt()
      实现父类方法转换为整形
      Specified by:
      toInt in interface net.mingsoft.base.constant.e.BaseEnum
    • toString

      public String toString()
      Specified by:
      toString in interface net.mingsoft.base.constant.e.BaseEnum
      Overrides:
      toString in class Enum<ManagerAdminEnum>