public enum ApplicationType extends java.lang.Enum<ApplicationType>
ApplicationVersion
.Enum Constant and Description |
---|
ALPHA
An alpha release of an application.
|
BETA
A beta release of an application.
|
RC
A release candidate.
|
STABLE
A stable release that contains all features planned in this stage and has been sufficiently tested.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ALPHA_STRING |
static java.lang.String |
BETA_STRING |
static java.lang.String |
RC_STRING |
static java.lang.String |
STABLE_STRING |
Modifier and Type | Method and Description |
---|---|
static ApplicationType |
parseType(java.lang.String text)
Parses a text representation of an application type.
|
java.lang.String |
toString()
Returns the string representation of this instance.
|
static ApplicationType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ApplicationType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ApplicationType ALPHA
public static final ApplicationType BETA
public static final ApplicationType RC
public static final ApplicationType STABLE
public static final java.lang.String ALPHA_STRING
public static final java.lang.String BETA_STRING
public static final java.lang.String RC_STRING
public static final java.lang.String STABLE_STRING
public static ApplicationType[] values()
for (ApplicationType c : ApplicationType.values()) System.out.println(c);
public static ApplicationType 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 java.lang.String toString()
ALPHA_STRING
, BETA_STRING
, RC_STRING
or STABLE_STRING
. (Note that STABLE_STRING
is empty since the return value of
this method shall be used to display the application version to the user.)toString
in class java.lang.Enum<ApplicationType>
public static ApplicationType parseType(java.lang.String text)
text
- the string to parsenull
if the string could not be parsed or
was also null