Code Examples
A repository of 155 code examples for BeepBeep
functions.Maximum Class Reference

Binary function that returns the maximum of two values. More...

Public Member Functions

Number getValue (Number x, Number y)
 

Static Public Member Functions

static void main (String[] args) throws FunctionException
 

Static Public Attributes

static final transient Maximum instance = new Maximum()
 

Detailed Description

Binary function that returns the maximum of two values.

Instead of inheriting from the top-level Function class, it is easier in most cases to descend from lower classes, which provide a few more functionalities. For a function that takes a two arguments, it is wise to extend BinaryFunction.

Author
Sylvain Hallé

Definition at line 33 of file Maximum.java.


The documentation for this class was generated from the following file: