Enum Question.Type
- java.lang.Object
-
- java.lang.Enum<Question.Type>
-
- org.seedstack.maven.components.inquirer.Question.Type
-
- All Implemented Interfaces:
Serializable,Comparable<Question.Type>
- Enclosing class:
- Question
public static enum Question.Type extends Enum<Question.Type>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Question.TypefromString(String key)static Question.TypevalueOf(String name)Returns the enum constant of this type with the specified name.static Question.Type[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STRING
public static final Question.Type STRING
-
BOOLEAN
public static final Question.Type BOOLEAN
-
INTEGER
public static final Question.Type INTEGER
-
DOUBLE
public static final Question.Type DOUBLE
-
-
Method Detail
-
values
public static Question.Type[] 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 (Question.Type c : Question.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Question.Type 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
-
fromString
public static Question.Type fromString(String key)
-
-