Package org.jppf.node.policy
Class NumericExpression
- All Implemented Interfaces:
Serializable,Expression<Double>
An expression that represents a numeric value as either a literal or an expression that returns a numeric value.
- Author:
- Laurent Cohen
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionNumericExpression(Double value) Initialize as a literal numeric value.NumericExpression(String expression) -
Method Summary
Methods inherited from class org.jppf.node.policy.AbstractExpression
evaluate, getExpression, isLiteral
-
Constructor Details
-
NumericExpression
- Parameters:
expression- the expression to evaluate.
-
NumericExpression
Initialize as a literal numeric value.- Parameters:
value- the value to return.
-
-
Method Details
-
getValueType
- Returns:
- the type of value this expression returns.
-