Enum Class SubscriptionStatus
java.lang.Object
java.lang.Enum<SubscriptionStatus>
io.github.xezzon.zeroweb.subscription.enumeration.SubscriptionStatus
- All Implemented Interfaces:
io.github.xezzon.zeroweb.core.trait.IDict, Serializable, Comparable<SubscriptionStatus>, Constable
public enum SubscriptionStatus
extends Enum<SubscriptionStatus>
implements io.github.xezzon.zeroweb.core.trait.IDict
订阅状态枚举,定义了接口订阅的各种状态
- Author:
- xezzon
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptiongetCode()获取字典编码getLabel()获取字典标签int获取枚举序号getTag()获取字典标签static SubscriptionStatusReturns the enum constant of this class with the specified name.static SubscriptionStatus[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
NONE
未订阅状态 -
AUDITING
审核中状态 -
SUBSCRIBED
已订阅状态
-
-
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
-
getTag
获取字典标签- Specified by:
getTagin interfaceio.github.xezzon.zeroweb.core.trait.IDict- Returns:
- 字典标签
-
getCode
获取字典编码- Specified by:
getCodein interfaceio.github.xezzon.zeroweb.core.trait.IDict- Returns:
- 字典编码
-
getLabel
获取字典标签- Specified by:
getLabelin interfaceio.github.xezzon.zeroweb.core.trait.IDict- Returns:
- 字典标签
-
getOrdinal
public int getOrdinal()获取枚举序号- Specified by:
getOrdinalin interfaceio.github.xezzon.zeroweb.core.trait.IDict- Returns:
- 枚举序号
-