Max
See javadoc - uk.gov.gchq.koryphe.impl.binaryoperator.Max
Available since Koryphe version 1.0.0
Returns the max value.
Examples
Max
Java
JSON
Full JSON
Python
final Max function = new Max();
{
"class" : "uk.gov.gchq.koryphe.impl.binaryoperator.Max"
}
{
"class" : "uk.gov.gchq.koryphe.impl.binaryoperator.Max"
}
g.Max()
Input type:
java.lang.Comparable
Example inputs:
Input Type | Inputs | Result Type | Result |
---|---|---|---|
java.lang.Integer | 5 and 6 | java.lang.Integer | 6 |
java.lang.String | inputString and anotherInputString | java.lang.String | inputString |
null and 1 | java.lang.Integer | 1 |