public final class Objects extends Object
Modifier and Type | Method and Description |
---|---|
static Object |
coalesce(Object first,
Object second)
Returns the first non-
null object from the provided two objects. |
public static Object coalesce(Object first, Object second)
null
object from the provided two objects. So, if the first object is not
null
, then it will be returned, otherwise the second object will be returned.first
- The first object.second
- The second object.null
object from the provided two objects.Copyright © 2012–2014 OmniFaces. All rights reserved.