Enum Class ExpressionType
- All Implemented Interfaces:
Serializable, Comparable<ExpressionType>, Constable
Expression type.
Used for autodiff caching.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe expression is a constant.The expression is composed of linear and lower-order operators.There is no expression.The expression is composed of nonlinear and lower-order operators.The expression is composed of quadratic and lower-order operators. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic ExpressionTypefromInt(int x) Converts integer to its corresponding enum value.static ExpressionTypeReturns the enum constant of this class with the specified name.static ExpressionType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
There is no expression. -
CONSTANT
The expression is a constant. -
LINEAR
The expression is composed of linear and lower-order operators. -
QUADRATIC
The expression is composed of quadratic and lower-order operators. -
NONLINEAR
The expression is composed of nonlinear and lower-order operators.
-
-
Field Details
-
value
public final int valueExpressionType value.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
fromInt
Converts integer to its corresponding enum value.- Parameters:
x- The integer.- Returns:
- The enum value.
-