
public static enum OMathExpression.Operator extends Enum<OMathExpression.Operator>
| 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) |
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 PLUS
public static final OMathExpression.Operator MINUS
public static final OMathExpression.Operator STAR
public static final OMathExpression.Operator SLASH
public static final OMathExpression.Operator REM
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)
Copyright © 2009–2025 OrientDB. All rights reserved.