| Modifier and Type | Method and Description |
|---|---|
static <M,R> Supplier<M> |
Fun.composeTry0(@NotNull Function<? super R,? extends M> monoidSuccess,
@NotNull Function<? super Exception,? extends M> monoidError,
@NotNull Fun.ThrowingSupplier<? extends R> mayThrowOnGet)
|
static <M,R> Supplier<M> |
Fun.composeTry0(@NotNull Function<? super R,? extends M> monadUnit,
@NotNull Supplier<? extends M> monadZero,
@NotNull Fun.ThrowingSupplier<? extends R> mayThrowOnGet,
@Nullable Consumer<? super Exception> onError)
|
static <R> Supplier<Result<R>> |
Fun.result0(@NotNull Fun.ThrowingSupplier<? extends R> mayThrowOnGet)
Transform a
Fun.ThrowingSupplier to a Supplier of Result whose success type parameter is the
same as the type parameter of the Fun.ThrowingSupplier. |
static <R> Supplier<R> |
Fun.tryOrDefault0(@NotNull Fun.ThrowingSupplier<R> mayThrowOnGet,
R defaultValue)
Transform a
Fun.ThrowingSupplier to a Supplier, providing a default value to return if
an exception is thrown. |
static <R> Supplier<Optional<R>> |
Fun.tryOrOptional0(@NotNull Fun.ThrowingSupplier<R> mayThrowOnGet)
|
static <R> Supplier<R> |
Fun.uncheck0(@NotNull Fun.ThrowingSupplier<? extends R> mayThrowOnGet)
Transform a
Fun.ThrowingSupplier to an unchecked Supplier of the same supplied type parameter. |
Copyright © 2017–2020. All rights reserved.