Enum QuestionnaireSession.State
- java.lang.Object
-
- java.lang.Enum<QuestionnaireSession.State>
-
- io.dialob.questionnaire.service.api.session.QuestionnaireSession.State
-
- All Implemented Interfaces:
Serializable,Comparable<QuestionnaireSession.State>
- Enclosing interface:
- QuestionnaireSession
public static enum QuestionnaireSession.State extends Enum<QuestionnaireSession.State>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACTIVECOMPLETEDINITIALIZEDNEWPASSIVE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description QuestionnaireSession.Stateto(QuestionnaireSession.State next)static QuestionnaireSession.StatevalueOf(String name)Returns the enum constant of this type with the specified name.static QuestionnaireSession.State[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NEW
public static final QuestionnaireSession.State NEW
-
INITIALIZED
public static final QuestionnaireSession.State INITIALIZED
-
ACTIVE
public static final QuestionnaireSession.State ACTIVE
-
PASSIVE
public static final QuestionnaireSession.State PASSIVE
-
COMPLETED
public static final QuestionnaireSession.State COMPLETED
-
-
Method Detail
-
values
public static QuestionnaireSession.State[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (QuestionnaireSession.State c : QuestionnaireSession.State.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static QuestionnaireSession.State valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
to
@Nonnull public QuestionnaireSession.State to(@Nonnull QuestionnaireSession.State next)
-
-