public enum EnvTypeImpl extends java.lang.Enum<EnvTypeImpl> implements EnvType
| Enum Constant and Description |
|---|
DEV
Development environment.
|
PROD
Production environment.
|
STAGE
Staging environment.
|
TEST
Testing environment.
|
| Modifier and Type | Method and Description |
|---|---|
static com.google.common.base.Optional<EnvType> |
fromString(java.lang.String value)
Checks match environment from string.
|
java.lang.String[] |
getConfigFile()
Respond with the configuration files resource paths.
|
java.lang.String |
getName()
Respond with the name of the environment.
|
java.lang.String |
toString() |
static EnvTypeImpl |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static EnvTypeImpl[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EnvTypeImpl PROD
public static final EnvTypeImpl STAGE
public static final EnvTypeImpl DEV
public static final EnvTypeImpl TEST
public static EnvTypeImpl[] values()
for (EnvTypeImpl c : EnvTypeImpl.values()) System.out.println(c);
public static EnvTypeImpl 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()
toString in class java.lang.Enum<EnvTypeImpl>public java.lang.String getName()
EnvTypepublic java.lang.String[] getConfigFile()
EnvTypegetConfigFile in interface EnvType