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 CYCLECYCLEargument.INCREMENT_BYINCREMENT_BYargument.MAXVALUEMAXVALUEargument.MINVALUEMINVALUEargument.START_WITHSTART_WITHargument.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetSql(Object value)Returns SQL for argument with the specifiedvalue.StringtoString()static SequenceElement.ArgumentvalueOf(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_WITHargument.
-
INCREMENT_BY
public static final SequenceElement.Argument INCREMENT_BY
INCREMENT_BYargument.
-
MINVALUE
public static final SequenceElement.Argument MINVALUE
MINVALUEargument.
-
MAXVALUE
public static final SequenceElement.Argument MAXVALUE
MAXVALUEargument.
-
CYCLE
public static final SequenceElement.Argument CYCLE
CYCLEargument.
-
-
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:
toStringin classEnum<SequenceElement.Argument>
-
-