public class Nulls extends Object
| Constructor and Description |
|---|
Nulls() |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
coalesce(List<T> elements)
Find the first non-null element
|
static <T> T |
coalesce(T... elements)
Find the first non-null element
|
public static <T> T coalesce(T... elements)
T - the type of the elementselements - the elements to coalescepublic static <T> T coalesce(List<T> elements)
T - the type of the elementselements - the elements to coalesceCopyright © 2018. All rights reserved.