Class OpMinus

  • All Implemented Interfaces:
    Opcodes, SpelNode

    public class OpMinus
    extends Operator
    The minus operator supports:
    • subtraction of numbers
    • subtraction of an int from a string of one character (effectively decreasing that character), so 'd'-3='a'

    It can be used as a unary operator for numbers. The standard promotions are performed when the operand types vary (double-int=double). For other options it defers to the registered overloader.

    Since:
    3.0
    Author:
    Andy Clement, Juergen Hoeller, Giovanni Dall'Oglio Risso