| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static < Generic type of values to coalesce T> T | Returns: The first non-empty value, or null if all values were emptyThe list of values. values)Operates like SQL coalesce expression, except empty strings are treated as null. |
| public static <T> T | coalesceSuppliedValues(Supplier<T>... valueSuppliers)
Find the first non-null value supplied by the given suppliers |
| NullnessHelper | back to summary |
|---|---|
| public NullnessHelper() | |
| coalesce | back to summary |
|---|---|
| public static <T> T coalesce(T... values) Operates like SQL coalesce expression, except empty strings are treated as null. Return the first non-empty value
| |
| coalesceSuppliedValues | back to summary |
|---|---|
| public static <T> T coalesceSuppliedValues(Supplier<T>... valueSuppliers) Find the first non-null value supplied by the given suppliers | |