public class Plus extends ArithmeticHolder
Arithmetic Holder that handles addition between value A and value B.
  • Constructor Details

    • Plus

      public Plus(com.fasterxml.jackson.databind.JsonNode node)
      Create a new addition operation
      Parameters:
      node - The JsonNode to refer
    • Plus

      public Plus(ValueHolder a, ValueHolder 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 ArithmeticHolder
      Returns:
      A + B for numerical values. Concatenates strings, acts as an OR gate for boolean values, and appends or merges values to arrays.
    • getId

      public SourceId getId()
      Description copied from class: ValueHolder
      Get the ID of the value holder
      Overrides:
      getId in class ValueHolder
      Returns:
      SourceId.PLUS
    • toString

      public String toString()
      Overrides:
      toString in class ArithmeticHolder