Formula 1.0.0

hirondelle.formula.function.builtin
Class Max

Object
  extended by hirondelle.formula.function.builtin.Max
All Implemented Interfaces:
Function

public final class Max
extends Object
implements Function

max(x1, x2, x3, ...): the maximum value in a set of numbers.


Constructor Summary
Max()
           
 
Method Summary
 Decimal calculate(Decimal... aArgs)
          Return the maximum value found in the given parameters.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Max

public Max()
Method Detail

calculate

public Decimal calculate(Decimal... aArgs)
Return the maximum value found in the given parameters.

The number of parameters in this case (0..N) is not fixed. If no parameters are passed, then zero is returned. The parameters can be passed in any order.

Specified by:
calculate in interface Function
Parameters:
aArgs - 0 or more arguments to the function.

Formula 1.0.0

Copyright Hirondelle Systems. Published January 31, 2013