public static enum Rythm.Mode extends Enum<Rythm.Mode>
RythmEngine
Enum Constant and Description |
---|
dev
Indicate the engine is run in a development mode
|
prod
Indicate the engien is run in a product environment
|
Modifier and Type | Method and Description |
---|---|
boolean |
isDev()
Check if the current value is
dev or not |
boolean |
isProd()
Check if the current value is
prod or not |
static Rythm.Mode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Rythm.Mode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Rythm.Mode dev
public static final Rythm.Mode prod
public static Rythm.Mode[] values()
for (Rythm.Mode c : Rythm.Mode.values()) System.out.println(c);
public static Rythm.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()
dev
or notdev
or false otherwiseCopyright © 2015. All Rights Reserved.