com.monad.homerun.function.math
Class Max

java.lang.Object
  extended by com.monad.homerun.function.math.Max
All Implemented Interfaces:
Function

public class Max
extends java.lang.Object
implements Function

Max returns the maximum value of its arguments.


Constructor Summary
Max()
           
 
Method Summary
 Value eval(java.util.List<Value> args)
          Returns the maximum of the arguments.
 java.lang.String getName()
          Returns the name of the function
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Max

public Max()
Method Detail

getName

public java.lang.String getName()
Description copied from interface: Function
Returns the name of the function

Specified by:
getName in interface Function
Returns:
name the function name

eval

public Value eval(java.util.List<Value> args)
Returns the maximum of the arguments.

Specified by:
eval in interface Function
Returns:
the maximum value


Copyright © 2006-2009 Richard Rodgers. All Rights Reserved.