public final class ObjectFunctions extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
coalesce(T first,
T second)
Returns the first parameter if it is not
null, or else returns the second parameter. |
public static <T> T coalesce(T first,
T second)
null, or else returns the second parameter.T - the type of the objectsfirst - the first parametersecond - the second parameterfirst if it is non-null; otherwise secondCopyright © 2016–2021 EntIT Software LLC, a Micro Focus company. All rights reserved.