public static enum OMathExpression.Operator extends Enum<OMathExpression.Operator>
Enum Constant and Description |
---|
BIT_AND |
BIT_OR |
LSHIFT |
MINUS |
PLUS |
REM |
RSHIFT |
RUNSIGNEDSHIFT |
SLASH |
STAR |
XOR |
Modifier and Type | Method and Description |
---|---|
abstract Number |
apply(BigDecimal left,
BigDecimal right) |
abstract Number |
apply(Double left,
Double right) |
abstract Number |
apply(Float left,
Float right) |
abstract Number |
apply(Integer left,
Integer right) |
abstract Number |
apply(Long left,
Long right) |
Number |
apply(Number a,
OMathExpression.Operator operation,
Number b) |
Object |
apply(Object left,
Object right) |
int |
getPriority() |
static OMathExpression.Operator |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OMathExpression.Operator[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OMathExpression.Operator STAR
public static final OMathExpression.Operator SLASH
public static final OMathExpression.Operator REM
public static final OMathExpression.Operator PLUS
public static final OMathExpression.Operator MINUS
public static final OMathExpression.Operator LSHIFT
public static final OMathExpression.Operator RSHIFT
public static final OMathExpression.Operator RUNSIGNEDSHIFT
public static final OMathExpression.Operator BIT_AND
public static final OMathExpression.Operator XOR
public static final OMathExpression.Operator BIT_OR
public static OMathExpression.Operator[] values()
for (OMathExpression.Operator c : OMathExpression.Operator.values()) System.out.println(c);
public static OMathExpression.Operator valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic abstract Number apply(BigDecimal left, BigDecimal right)
public Number apply(Number a, OMathExpression.Operator operation, Number b)
public int getPriority()
Copyright © 2009–2020 OrientDB. All rights reserved.