JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.util.formulae
Class Remainder

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

public class Remainder
extends Operation

This is a concrete implementation for the remained "%" operation. Remainder is normally a binary operation, but we also permit remainders to be taken against a list.


Field Summary
 
Fields inherited from class com.klg.jclass.util.formulae.Operation
leftOperand, rightOperand
 
Constructor Summary
Remainder(com.klg.jclass.util.formulae.Expression numerator, com.klg.jclass.util.formulae.Expression divisor)
          Create an operation to take the reminder of one Expression WRT another
Remainder(com.klg.jclass.util.formulae.Expression numerator, Number divisor)
          Create an operation to take the remainder of an Expression WRT a Number
Remainder(Number numerator, com.klg.jclass.util.formulae.Expression divisor)
          Create an operation to take the remainder of a Number WRT an Expression
Remainder(Number numerator, Number divisor)
          Create an operation to take the remainder of a Number WRT another
 
Method Summary
 com.klg.jclass.util.formulae.Result evaluate()
          Return the remainder of the first operand divided by the second
 
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

Remainder

public Remainder(com.klg.jclass.util.formulae.Expression numerator,
                 com.klg.jclass.util.formulae.Expression divisor)
Create an operation to take the reminder of one Expression WRT another


Remainder

public Remainder(com.klg.jclass.util.formulae.Expression numerator,
                 Number divisor)
Create an operation to take the remainder of an Expression WRT a Number


Remainder

public Remainder(Number numerator,
                 com.klg.jclass.util.formulae.Expression divisor)
Create an operation to take the remainder of a Number WRT an Expression


Remainder

public Remainder(Number numerator,
                 Number divisor)
Create an operation to take the remainder of a Number WRT another

Method Detail

evaluate

public com.klg.jclass.util.formulae.Result evaluate()
Return the remainder of the first operand divided by the second

Specified by:
evaluate in interface Expression
Specified by:
evaluate in class Operation
Returns:
The residue of the first operand after division by the second

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