Direct Known Subclasses:
Divide, Minus, Modulus, Multiply, Plus, Round

public class ArithmeticHolder extends InteractiveValueHolder
A default unset arithmetic holder. This handles any math operations
  • Constructor Details

    • ArithmeticHolder

      public ArithmeticHolder(com.fasterxml.jackson.databind.JsonNode node)
      Create a new Arithmetic Holder
      Parameters:
      node - The JsonNode to refer
    • ArithmeticHolder

      public ArithmeticHolder(ValueHolder a, ValueHolder b)
      Create a new Arithmetic Holder
      Parameters:
      a - Value A
      b - Value B
  • Method Details

    • getValue

      public Object getValue()
      Description copied from class: ValueHolder
      Get the value being pointed to casted as an Object. The contents being returned by this method are mutable.
      Overrides:
      getValue in class ValueHolder
      Returns:
      The value being pointed to, in its current state.
    • notEmpty

      public boolean notEmpty()
      Description copied from class: ValueHolder
      Check if this holder doesn't point to null
      Overrides:
      notEmpty in class ValueHolder
      Returns:
      true if this points to a value, false if it points to null
    • toString

      public String toString()
      Overrides:
      toString in class ValueHolder