public class Util extends Object
| Constructor and Description |
|---|
Util() |
| Modifier and Type | Method and Description |
|---|---|
static String |
escapeRegExp(String s) |
static <R> R |
firstNotnull(Supplier<R>... sups) |
static <R> Optional<R> |
firstPresent(Supplier<Optional<R>>... sups) |
static <T> List<T> |
nullToEmpty(List<T> ts) |
static String |
trimEnd(String s) |
@SafeVarargs public static <R> R firstNotnull(Supplier<R>... sups)
@SafeVarargs public static <R> Optional<R> firstPresent(Supplier<Optional<R>>... sups)
Copyright © 2020. All rights reserved.