Package ru.curs.celesta.score
Enum SequenceElement.Argument
- java.lang.Object
-
- java.lang.Enum<SequenceElement.Argument>
-
- ru.curs.celesta.score.SequenceElement.Argument
-
- All Implemented Interfaces:
Serializable
,Comparable<SequenceElement.Argument>
- Enclosing class:
- SequenceElement
public static enum SequenceElement.Argument extends Enum<SequenceElement.Argument>
Sequence arguments.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CYCLE
CYCLE
argument.INCREMENT_BY
INCREMENT_BY
argument.MAXVALUE
MAXVALUE
argument.MINVALUE
MINVALUE
argument.START_WITH
START_WITH
argument.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getSql(Object value)
Returns SQL for argument with the specifiedvalue
.String
toString()
static SequenceElement.Argument
valueOf(String name)
Returns the enum constant of this type with the specified name.static SequenceElement.Argument[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
START_WITH
public static final SequenceElement.Argument START_WITH
START_WITH
argument.
-
INCREMENT_BY
public static final SequenceElement.Argument INCREMENT_BY
INCREMENT_BY
argument.
-
MINVALUE
public static final SequenceElement.Argument MINVALUE
MINVALUE
argument.
-
MAXVALUE
public static final SequenceElement.Argument MAXVALUE
MAXVALUE
argument.
-
CYCLE
public static final SequenceElement.Argument CYCLE
CYCLE
argument.
-
-
Method Detail
-
values
public static SequenceElement.Argument[] 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 (SequenceElement.Argument c : SequenceElement.Argument.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SequenceElement.Argument 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
-
getSql
public String getSql(Object value)
Returns SQL for argument with the specifiedvalue
.- Parameters:
value
- argument value
-
toString
public String toString()
- Overrides:
toString
in classEnum<SequenceElement.Argument>
-
-