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 TypeInputResult TypeResult
java.lang.Integer4java.lang.Integer5
java.lang.Integer5java.lang.Integer5
java.lang.StringaStringjava.lang.Integer5
java.util.Arrays$ArrayList[4, 5]java.lang.Integer5
nulljava.lang.Integer5

results matching ""

    No results matching ""