SetValue
See javadoc - uk.gov.gchq.koryphe.impl.function.SetValue
Available since Koryphe version 1.5.0
Returns a set value from any input.
Examples
Set value
Java
JSON
Full JSON
Python
final SetValue function = new SetValue(5);{
"class" : "SetValue",
"value" : 5
}{
"class" : "uk.gov.gchq.koryphe.impl.function.SetValue",
"value" : 5
}g.SetValue(
value=5
)Input type:
java.lang.Object
Example inputs:
| Input Type | Input | Result Type | Result |
|---|---|---|---|
| java.lang.Integer | 4 | java.lang.Integer | 5 |
| java.lang.Integer | 5 | java.lang.Integer | 5 |
| java.lang.String | aString | java.lang.Integer | 5 |
| java.util.Arrays$ArrayList | [4, 5] | java.lang.Integer | 5 |
| null | java.lang.Integer | 5 |