public enum LicenseType extends Enum<LicenseType>
| Enum Constant and Description |
|---|
DEMO
Demo license.
|
PRODUCTION
Production license.
|
TEST
Test license - for use by internal test teams.
|
TRIAL
Trial license to be used for giving limited-time trial licenses.
|
| Modifier and Type | Method and Description |
|---|---|
static LicenseType |
get(int ord)
Find license type by an ordinal.
|
static LicenseType |
get(String name)
Find license type by name
|
static String |
typeToString(int code)
Returns a type as a string.
|
static LicenseType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LicenseType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LicenseType PRODUCTION
public static final LicenseType TRIAL
public static final LicenseType DEMO
public static final LicenseType TEST
public static LicenseType[] values()
for (LicenseType c : LicenseType.values()) System.out.println(c);
public static LicenseType 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 LicenseType get(int ord)
ord - license type ordinalpublic static LicenseType get(String name)
name - license type namepublic static String typeToString(int code)
code - the license typeCopyright © 2014. All Rights Reserved.