Enum ArExpression.Operator
- java.lang.Object
-
- java.lang.Enum<ArExpression.Operator>
-
- org.chocosolver.solver.expression.discrete.arithmetic.ArExpression.Operator
-
- All Implemented Interfaces:
Serializable
,Comparable<ArExpression.Operator>
- Enclosing interface:
- ArExpression
public static enum ArExpression.Operator extends Enum<ArExpression.Operator>
List of available operator for arithmetic expression
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ABS
absolute operatorADD
addition operatorDIV
division operatorMAX
max operatorMIN
min operatorMOD
modulo operatorMUL
multiplication operatorNEG
negation operatorNOP
POW
power operatorSQR
square operatorSUB
subtraction operator
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ArExpression.Operator
valueOf(String name)
Returns the enum constant of this type with the specified name.static ArExpression.Operator[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NEG
public static final ArExpression.Operator NEG
negation operator
-
ABS
public static final ArExpression.Operator ABS
absolute operator
-
ADD
public static final ArExpression.Operator ADD
addition operator
-
SUB
public static final ArExpression.Operator SUB
subtraction operator
-
MUL
public static final ArExpression.Operator MUL
multiplication operator
-
DIV
public static final ArExpression.Operator DIV
division operator
-
MOD
public static final ArExpression.Operator MOD
modulo operator
-
SQR
public static final ArExpression.Operator SQR
square operator
-
POW
public static final ArExpression.Operator POW
power operator
-
MIN
public static final ArExpression.Operator MIN
min operator
-
MAX
public static final ArExpression.Operator MAX
max operator
-
NOP
public static final ArExpression.Operator NOP
-
-
Method Detail
-
values
public static ArExpression.Operator[] 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 (ArExpression.Operator c : ArExpression.Operator.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ArExpression.Operator 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
-
-