Multiply
See javadoc - uk.gov.gchq.koryphe.impl.function.Multiply
Available since Koryphe version 1.0.0
The input integers are multiplied together.
Examples
Object multiply
Java
JSON
Full JSON
Python
final Multiply function = new Multiply();{
"class" : "Multiply"
}{
"class" : "uk.gov.gchq.koryphe.impl.function.Multiply"
}g.Multiply()Input type:
java.lang.Integer, java.lang.Integer
Example inputs:
| Input Type | Input | Result Type | Result |
|---|---|---|---|
| [java.lang.Integer, java.lang.Integer] | [2, 3] | java.lang.Integer | 6 |
| [ ,java.lang.Integer] | [null, 3] | null | |
| [java.lang.Integer, ] | [2, null] | java.lang.Integer | 2 |
| [java.lang.Double, java.lang.Double] | [2.1, 3.1] | IllegalArgumentException: Input tuple values do not match the required function input types |