org.shiftone.bigcalc.math.function
Class MinMax

java.lang.Object
  extended byorg.shiftone.bigcalc.math.function.MinMax
All Implemented Interfaces:
Function, Functor

public class MinMax
extends java.lang.Object
implements Function

Version:
$Revision: 1.7 $
Author:
$Author: jeffdrost $

Field Summary
static MinMax MAX
           
static MinMax MIN
           
 
Method Summary
 java.lang.Object evaluate(Context context)
           
protected  java.math.BigDecimal getMinOrMax(java.math.BigDecimal a, java.math.BigDecimal b)
           
 void print(java.lang.StringBuffer sb, Context context)
           
 void setArguments(FunctorList arguments)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MIN

public static final MinMax MIN

MAX

public static final MinMax MAX
Method Detail

setArguments

public void setArguments(FunctorList arguments)
                  throws java.lang.Exception
Specified by:
setArguments in interface Function
Throws:
java.lang.Exception

evaluate

public java.lang.Object evaluate(Context context)
                          throws java.lang.Exception
Specified by:
evaluate in interface Functor
Throws:
java.lang.Exception

print

public void print(java.lang.StringBuffer sb,
                  Context context)
           throws java.lang.Exception
Specified by:
print in interface Functor
Throws:
java.lang.Exception

getMinOrMax

protected java.math.BigDecimal getMinOrMax(java.math.BigDecimal a,
                                           java.math.BigDecimal b)