public enum LicenseStatus extends Enum<LicenseStatus>
| Enum Constant and Description |
|---|
ACTIVE
Activated application license.
|
EXPIRED
Expired application license.
|
INACTIVE
De-activated application license.
|
NEW
Newly issued license, not yet activated.
|
| Modifier and Type | Method and Description |
|---|---|
static LicenseStatus |
get(int ord)
Find license status by it's ordinal.
|
static LicenseStatus |
get(String name)
Find license status by name
|
static String |
statusToString(int code)
Returns a status as a string.
|
static LicenseStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LicenseStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LicenseStatus NEW
public static final LicenseStatus ACTIVE
public static final LicenseStatus EXPIRED
public static final LicenseStatus INACTIVE
public static LicenseStatus[] values()
for (LicenseStatus c : LicenseStatus.values()) System.out.println(c);
public static LicenseStatus valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is nullpublic static LicenseStatus get(int ord)
ord - ordinalpublic static LicenseStatus get(String name)
name - license statuspublic static String statusToString(int code)
code - the license statusCopyright © 2014. All Rights Reserved.