JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.util.formulae
Class Subtract

java.lang.Object
  |
  +--com.klg.jclass.util.formulae.Operation
        |
        +--com.klg.jclass.util.formulae.Subtract
All Implemented Interfaces:
Cloneable, Expression

public class Subtract
extends Operation

This is a concrete implementation for the subtraction "-" operation. Subtraction is normally the difference between a pair of elements, but it can also be unary (returns negative) *???or between two lists???*.


Field Summary
 
Fields inherited from class com.klg.jclass.util.formulae.Operation
leftOperand, rightOperand
 
Constructor Summary
Subtract(com.klg.jclass.util.formulae.Expression left, com.klg.jclass.util.formulae.Expression right)
          Create an operation to subtract two Expressions
Subtract(com.klg.jclass.util.formulae.Expression left, Number right)
          Create an operation to subtract an Expression and a Number
Subtract(Number left, com.klg.jclass.util.formulae.Expression right)
          Create an operation to subtract a Number and an Expression
Subtract(Number left, Number right)
          Create an operation to subtract two Numbers
 
Method Summary
 com.klg.jclass.util.formulae.Result evaluate()
          Return the result of subtracting the operands
 
Methods inherited from class com.klg.jclass.util.formulae.Operation
clone
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Subtract

public Subtract(com.klg.jclass.util.formulae.Expression left,
                com.klg.jclass.util.formulae.Expression right)
Create an operation to subtract two Expressions


Subtract

public Subtract(com.klg.jclass.util.formulae.Expression left,
                Number right)
Create an operation to subtract an Expression and a Number


Subtract

public Subtract(Number left,
                com.klg.jclass.util.formulae.Expression right)
Create an operation to subtract a Number and an Expression


Subtract

public Subtract(Number left,
                Number right)
Create an operation to subtract two Numbers

Method Detail

evaluate

public com.klg.jclass.util.formulae.Result evaluate()
Return the result of subtracting the operands

Specified by:
evaluate in interface Expression
Specified by:
evaluate in class Operation
Returns:
The result of the first operand minus the second

Copyright © 2004 Quest Software Inc..
All rights reserved.