Enum Class StatusEnum

java.lang.Object
java.lang.Enum<StatusEnum>
com.luna.common.constant.StatusEnum
All Implemented Interfaces:
Serializable, Comparable<StatusEnum>, java.lang.constant.Constable

public enum StatusEnum extends Enum<StatusEnum>
用户状态枚举
Author:
haoxin
  • Enum Constant Details

    • ENABLE

      public static final StatusEnum ENABLE
      有效
    • DISABLE

      public static final StatusEnum DISABLE
      禁用
  • Method Details

    • values

      public static StatusEnum[] 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 StatusEnum 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
    • getLabelByValue

      public static String getLabelByValue(String value)
      根据匹配value的值获取Label
      Parameters:
      value -
      Returns:
    • getStatusEnum

      public static StatusEnum getStatusEnum(String value)
      获取StatusEnum
      Parameters:
      value -
      Returns:
    • getLabel

      public String getLabel()
    • getValue

      public String getValue()