JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.util.formulae
Class Max

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

public class Max
extends Operation

This is a concrete implementation for the max operation. Max can be determined for a pair of elements or across a list.


Field Summary
 
Fields inherited from class com.klg.jclass.util.formulae.Operation
leftOperand, rightOperand
 
Constructor Summary
Max(com.klg.jclass.util.formulae.Expression operand)
          Maximum across the given operand (usually a list of expressions)
Max(com.klg.jclass.util.formulae.Expression left, com.klg.jclass.util.formulae.Expression right)
          Max of a pair of Expressions
Max(com.klg.jclass.util.formulae.Expression left, Number right)
          Max of an Expression and a Number
Max(Number left, com.klg.jclass.util.formulae.Expression right)
          Max of a Number and an Expression
Max(Number left, Number right)
          Max of two Numbers
 
Method Summary
 com.klg.jclass.util.formulae.Result evaluate()
          Return the result of taking the max across all 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

Max

public Max(com.klg.jclass.util.formulae.Expression operand)
Maximum across the given operand (usually a list of expressions)


Max

public Max(com.klg.jclass.util.formulae.Expression left,
           com.klg.jclass.util.formulae.Expression right)
Max of a pair of Expressions


Max

public Max(com.klg.jclass.util.formulae.Expression left,
           Number right)
Max of an Expression and a Number


Max

public Max(Number left,
           com.klg.jclass.util.formulae.Expression right)
Max of a Number and an Expression


Max

public Max(Number left,
           Number right)
Max of two Numbers

Method Detail

evaluate

public com.klg.jclass.util.formulae.Result evaluate()
Return the result of taking the max across all the operands

Specified by:
evaluate in interface Expression
Specified by:
evaluate in class Operation
Returns:
The maximum value of any of the operands

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