MultiplyLongBy
See javadoc - uk.gov.gchq.koryphe.impl.function.MultiplyLongBy
Available since Koryphe version 1.9.0
Multiply the input Long by the provide number.
Examples
Multiply long by 2
Java
JSON
Full JSON
Python
final MultiplyLongBy function = new MultiplyLongBy(2L);
{
"class" : "MultiplyLongBy",
"by" : 2
}
{
"class" : "uk.gov.gchq.koryphe.impl.function.MultiplyLongBy",
"by" : 2
}
g.MultiplyLongBy(
by=2
)
Input type:
java.lang.Long
Example inputs:
Input Type | Input | Result Type | Result |
---|---|---|---|
java.lang.Long | 6 | java.lang.Long | 12 |
java.lang.Long | 5 | java.lang.Long | 10 |
null | null | ||
java.lang.Double | 6.1 | ClassCastException: java.lang.Double cannot be cast to java.lang.Long |