public enum SubscriptionPeriodType extends java.lang.Enum<SubscriptionPeriodType> implements GuiTitlable
Modifier and Type | Method and Description |
---|---|
int |
getCode() |
java.lang.String |
getDescription() |
static java.lang.String |
getDescription(int code) |
java.lang.String |
getGuiTitle()
Строка - имя объекта.
|
static SubscriptionPeriodType |
valueOf(int code) |
static SubscriptionPeriodType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SubscriptionPeriodType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SubscriptionPeriodType DAY
public static final SubscriptionPeriodType MONTH
public static final SubscriptionPeriodType YEAR
public static SubscriptionPeriodType[] values()
for (SubscriptionPeriodType c : SubscriptionPeriodType.values()) System.out.println(c);
public static SubscriptionPeriodType 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 getDescription()
public static java.lang.String getDescription(int code)
public static SubscriptionPeriodType valueOf(int code)
public java.lang.String getGuiTitle()
GuiTitlable
getGuiTitle
in interface GuiTitlable