Enum ArithmeticOperator
- java.lang.Object
-
- java.lang.Enum<ArithmeticOperator>
-
- it.bancaditalia.oss.vtl.impl.types.operators.ArithmeticOperator
-
- All Implemented Interfaces:
Serializable
,Comparable<ArithmeticOperator>
public enum ArithmeticOperator extends Enum<ArithmeticOperator>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ScalarValue<?,?,? extends NumberDomainSubset<?,? extends NumberDomain>,? extends NumberDomain>
applyAsDouble(ScalarValue<?,?,?,?> left, ScalarValue<?,?,?,?> right)
ScalarValue<?,?,? extends IntegerDomainSubset<?>,IntegerDomain>
applyAsInt(ScalarValue<?,?,?,?> left, ScalarValue<?,?,?,?> right)
boolean
isInfix()
String
toString()
static ArithmeticOperator
valueOf(String name)
Returns the enum constant of this type with the specified name.static ArithmeticOperator[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SUM
public static final ArithmeticOperator SUM
-
DIFF
public static final ArithmeticOperator DIFF
-
MULT
public static final ArithmeticOperator MULT
-
DIV
public static final ArithmeticOperator DIV
-
MOD
public static final ArithmeticOperator MOD
-
POWER
public static final ArithmeticOperator POWER
-
LOG
public static final ArithmeticOperator LOG
-
ROUND
public static final ArithmeticOperator ROUND
-
TRUNC
public static final ArithmeticOperator TRUNC
-
-
Method Detail
-
values
public static ArithmeticOperator[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ArithmeticOperator c : ArithmeticOperator.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ArithmeticOperator valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
applyAsDouble
public ScalarValue<?,?,? extends NumberDomainSubset<?,? extends NumberDomain>,? extends NumberDomain> applyAsDouble(ScalarValue<?,?,?,?> left, ScalarValue<?,?,?,?> right)
-
applyAsInt
public ScalarValue<?,?,? extends IntegerDomainSubset<?>,IntegerDomain> applyAsInt(ScalarValue<?,?,?,?> left, ScalarValue<?,?,?,?> right)
-
toString
public String toString()
- Overrides:
toString
in classEnum<ArithmeticOperator>
-
isInfix
public boolean isInfix()
-
-