First

See javadoc - uk.gov.gchq.koryphe.impl.binaryoperator.First

Available since Koryphe version 1.0.0

Returns the first non-null value

Examples

First

Java
JSON
Full JSON
final First first = new First();
{
  "class" : "First"
}
{
  "class" : "uk.gov.gchq.koryphe.impl.binaryoperator.First"
}

Input type:

java.lang.Object

Example inputs:

Input TypeInputsResult TypeResult
java.lang.Stringfirst and secondjava.lang.Stringfirst
java.lang.Stringfirst and nulljava.lang.Stringfirst
null and secondjava.lang.Stringsecond
null and nullnull

results matching ""

    No results matching ""