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 Type | Inputs | Result Type | Result |
|---|---|---|---|
| java.lang.String | first and second | java.lang.String | first |
| java.lang.String | first and null | java.lang.String | first |
| null and second | java.lang.String | second | |
| null and null | null |