public static enum Experiment.State extends Enum<Experiment.State>
Modifier and Type | Class and Description |
---|---|
static class |
Experiment.State.ExperimentStateTransition |
Enum Constant and Description |
---|
DELETED |
DRAFT |
PAUSED |
RUNNING |
TERMINATED |
Modifier and Type | Method and Description |
---|---|
boolean |
isActiveState() |
boolean |
isStateTransitionAllowed(Experiment.State newState) |
static Experiment.State |
toExperimentState(String state) |
static Experiment.State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Experiment.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Experiment.State DRAFT
public static final Experiment.State RUNNING
public static final Experiment.State PAUSED
public static final Experiment.State TERMINATED
public static final Experiment.State DELETED
public static Experiment.State[] values()
for (Experiment.State c : Experiment.State.values()) System.out.println(c);
public static Experiment.State 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 static Experiment.State toExperimentState(String state)
public boolean isActiveState()
public boolean isStateTransitionAllowed(Experiment.State newState)
Copyright © 2016. All rights reserved.