Code Examples
A repository of 155 code examples for BeepBeep
|
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() |
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.
Definition at line 33 of file Maximum.java.