Modifier and Type | Method and Description |
---|---|
static <T> Optional<T> |
firstMatching(Predicate<T> predicate,
ThrowingSupplier<T,Exception>... suppliers) |
static <T> Optional<T> |
firstNotNull(ThrowingSupplier<T,Exception>... suppliers) |
static <T> Supplier<T> |
memorize(Supplier<T> supplier) |
static <T> Supplier<T> |
memorize(ThrowingSupplier<T,? extends Exception> supplier,
Consumer<Exception> consumer) |
public static <T> Supplier<T> memorize(ThrowingSupplier<T,? extends Exception> supplier, Consumer<Exception> consumer)
public static <T> Optional<T> firstNotNull(ThrowingSupplier<T,Exception>... suppliers) throws Exception
Exception
public static <T> Optional<T> firstMatching(Predicate<T> predicate, ThrowingSupplier<T,Exception>... suppliers) throws Exception
Exception
Apache Camel