Enum Class MathOperation.Operator

java.lang.Object
java.lang.Enum<MathOperation.Operator>
org.litebridgedb.db.spi.math.MathOperation.Operator
All Implemented Interfaces:
Serializable, Comparable<MathOperation.Operator>, Constable
Enclosing class:
MathOperation

public static enum MathOperation.Operator extends Enum<MathOperation.Operator>
  • Enum Constant Details

    • ADD

      public static final MathOperation.Operator ADD
      Addition operator for mathematical calculations.

      The operator symbol is "+".

    • SUBTRACT

      public static final MathOperation.Operator SUBTRACT
      Subtraction operator for mathematical calculations.

      The operator symbol is "-".

    • MULTIPLY

      public static final MathOperation.Operator MULTIPLY
      Multiplication operator for mathematical calculations.

      The operator symbol is "*".

    • DIVIDE

      public static final MathOperation.Operator DIVIDE
      Division operator for mathematical calculations.

      The operator symbol is "/".

    • MOD

      public static final MathOperation.Operator MOD
      Modulo operator for mathematical calculations.

      The operator symbol is "%".

  • Method Details

    • values

      public static MathOperation.Operator[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static MathOperation.Operator valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • symbol

      public String symbol()
      Retrieves the symbol representing this operator.
      Returns:
      the operator's symbolic representation as a string.