| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static boolean | |
| public static boolean | |
| 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, returning the first non-empty value |
| public static < Generic type of values to coalesce T> T | Returns: The first non-empty value, or null if all values were emptyList of value Suppliers valueSuppliers)Operates like SQL coalesce expression, returning the first non-empty value |
| public static < Generic type of values to coalesce T> T | Returns: The first non-empty value, or null if all values were emptyList of value Suppliers valueSuppliers)Operates like SQL coalesce expression, returning the first non-empty value |
| public static <T> T | |
| public static <T> T |
| NullnessHelper | back to summary |
|---|---|
| private NullnessHelper() | |
| areAllNonNull | back to summary |
|---|---|
| public static boolean areAllNonNull(Object... objects) | |
| areSameNullness | back to summary |
|---|---|
| public static boolean areSameNullness(Object... values) Ensures that either:
| |
| coalesce | back to summary |
|---|---|
| public static <T> T coalesce(T... values) Operates like SQL coalesce expression, returning the first non-empty value Implementation Note This impl treats empty strings (`""`) as null.
| |
| coalesceSuppliedValues | back to summary |
|---|---|
| public static <T> T coalesceSuppliedValues(Supplier<T>... valueSuppliers) Operates like SQL coalesce expression, returning the first non-empty value Implementation Note This impl treats empty strings (`""`) as null.
| |
| coalesceSuppliedValues | back to summary |
|---|---|
| public static <T> T coalesceSuppliedValues(Function<T, Boolean> checker, Supplier<T>... valueSuppliers) Operates like SQL coalesce expression, returning the first non-empty value Implementation Note This impl treats empty strings (`""`) as null.
| |
| nullif | back to summary |
|---|---|
| public static <T> T nullif(T test, T fallback) | |
| nullif | back to summary |
|---|---|
| public static <T> T nullif(T test, Supplier<T> fallbackSupplier) | |