Class NumericValueExpr
java.lang.Object
org.n52.svalbard.odata.core.expr.arithmetic.NumericValueExpr
- All Implemented Interfaces:
ODataExpr,ArithmeticExpr,Expr
Expression representing a value.
-
Constructor Summary
ConstructorsConstructorDescriptionNumericValueExpr(Number value) Creates a newValueExpr.NumericValueExpr(String value) Creates a newValueExpr. -
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.n52.svalbard.odata.core.expr.arithmetic.ArithmeticExpr
asArithmetic, isArithmeticMethods inherited from interface org.n52.svalbard.odata.core.expr.Expr
asBinary, asBoolean, asBooleanBinary, asBooleanUnary, asComparison, asGeometry, asMember, asMethodCall, asTextValue, asTime, asUnary, isBinary, isBoolean, isBooleanBinary, isBooleanUnary, isComparison, isGeometry, isMember, isMethodCall, isTextValue, isTime, isUnary
-
Constructor Details
-
NumericValueExpr
Creates a newValueExpr.- Parameters:
value- the value
-
NumericValueExpr
Creates a newValueExpr.- Parameters:
value- the value
-
-
Method Details
-
getValue
Gets the value.- Returns:
- the value
-
isNumericValue
public boolean isNumericValue()Description copied from interface:ExprCheck if this expression is a number expression.- Specified by:
isNumericValuein interfaceExpr- Returns:
- if it is a value
-
asNumericValue
Description copied from interface:ExprGet this expression as a value expression- Specified by:
asNumericValuein interfaceExpr- Returns:
- the expression or
Optional.empty()if the type does not match
-
toString
-
toODataString
- Specified by:
toODataStringin interfaceODataExpr
-
accept
Description copied from interface:ExprAcceptsvisitorfor this expression. -
hashCode
public int hashCode() -
equals
-