public enum SubscriptionStatus extends java.lang.Enum<SubscriptionStatus> implements GuiTitlable
Modifier and Type | Method and Description |
---|---|
int |
getCode() |
java.lang.String |
getDescription() |
static java.lang.String |
getDescription(int code) |
static SubscriptionStatus |
getDescription(java.lang.String value) |
java.lang.String |
getGuiTitle()
Строка - имя объекта.
|
java.lang.String |
getStatus() |
static SubscriptionStatus |
valueOf(int code) |
static SubscriptionStatus |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SubscriptionStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SubscriptionStatus ACTIVE
public static final SubscriptionStatus SUSPEND
public static SubscriptionStatus[] values()
for (SubscriptionStatus c : SubscriptionStatus.values()) System.out.println(c);
public static SubscriptionStatus valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getCode()
public java.lang.String getStatus()
public java.lang.String getDescription()
public static SubscriptionStatus getDescription(java.lang.String value)
public static java.lang.String getDescription(int code)
public static SubscriptionStatus valueOf(int code)
public java.lang.String getGuiTitle()
GuiTitlable
getGuiTitle
in interface GuiTitlable