Serializable, Comparable<DeployEnv>public enum DeployEnv extends Enum<DeployEnv>
| Enum Constant | Description |
|---|---|
DEVELOPMENT |
|
PRODUCTION |
|
STAGING |
|
TESTING |
| Modifier and Type | Field | Description |
|---|---|---|
static String |
SYSTEM_ENV_DEPLOY_ENV |
|
static String |
SYSTEM_PROP_DEPLOY_ENV |
| Modifier and Type | Method | Description |
|---|---|---|
static DeployEnv |
getCurrent() |
|
boolean |
isAny(DeployEnv... phases) |
|
boolean |
isDevelopment() |
|
boolean |
isNotProduction() |
|
boolean |
isProduction() |
|
boolean |
isStaging() |
|
boolean |
isTesting() |
|
String |
lowerCaseName() |
|
static void |
setCurrent(DeployEnv phrase) |
|
static DeployEnv |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static DeployEnv[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DeployEnv DEVELOPMENT
public static final DeployEnv TESTING
public static final DeployEnv STAGING
public static final DeployEnv PRODUCTION
public static final String SYSTEM_PROP_DEPLOY_ENV
public static final String SYSTEM_ENV_DEPLOY_ENV
public static DeployEnv[] values()
for (DeployEnv c : DeployEnv.values()) System.out.println(c);
public static DeployEnv 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 boolean isDevelopment()
public boolean isTesting()
public boolean isStaging()
public boolean isProduction()
public boolean isNotProduction()
public boolean isAny(DeployEnv... phases)
public String lowerCaseName()
public static DeployEnv getCurrent()
public static void setCurrent(DeployEnv phrase)
Copyright © 2018. All rights reserved.