public static enum Play.Mode extends Enum<Play.Mode>
Enum Constant and Description |
---|
DEV
Enable development-specific features, e.g. view the documentation at the URL "/@documentation".
|
PROD
Disable development-specific features.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isDev() |
boolean |
isProd() |
static Play.Mode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Play.Mode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Play.Mode DEV
public static final Play.Mode PROD
public static Play.Mode[] values()
for (Play.Mode c : Play.Mode.values()) System.out.println(c);
public static Play.Mode 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 isDev()
public boolean isProd()
Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly