| Modifier and Type | Method and Description |
|---|---|
static <K,V> Fun.ThrowingBiFunction<K,V,Nothing> |
Fun.throwingVoidToNothing2(@NotNull Fun.ThrowingBiConsumer<? super K,? super V> mayThrowOnAccept)
Parallel method to
Nothing.voidToNothing2(BiConsumer), for transforming a Fun.ThrowingBiConsumer to a
Fun.ThrowingBiFunction that returns Nothing. |
| Modifier and Type | Method and Description |
|---|---|
static <M,K,V,R> BiFunction<K,V,M> |
Fun.composeTry2(@NotNull Function<? super R,? extends M> monoidSuccess,
@NotNull Function<? super Exception,? extends M> monoidError,
@NotNull Fun.ThrowingBiFunction<? super K,? super V,? extends R> mayThrowOnApply)
|
static <M,K,V,R> BiFunction<K,V,M> |
Fun.composeTry2(@NotNull Function<? super R,? extends M> monadUnit,
@NotNull Supplier<? extends M> monadZero,
@NotNull Fun.ThrowingBiFunction<? super K,? super V,? extends R> mayThrowOnApply,
@Nullable BiConsumer<? super Map.Entry<? super K,? super V>,? super Exception> onError)
|
static <K,V,R> BiFunction<K,V,Result<R>> |
Fun.result2(@NotNull Fun.ThrowingBiFunction<? super K,? super V,? extends R> mayThrowOnApply)
Transform a
Fun.ThrowingBiFunction to a BiFunction over the same input type parameters, which returns
a Result whose success type parameter is the same as the output type of the Fun.ThrowingBiFunction. |
static <K,V,R> BiFunction<K,V,R> |
Fun.tryOrDefault2(@NotNull Fun.ThrowingBiFunction<? super K,? super V,R> mayThrowOnApply,
R defaultValue)
Transform a
Fun.ThrowingBiFunction to a BiFunction, providing a default value to return if
an exception is thrown. |
static <K,V,R> BiFunction<K,V,Optional<R>> |
Fun.tryOrOptional2(@NotNull Fun.ThrowingBiFunction<? super K,? super V,R> mayThrowOnApply)
Transform a
Fun.ThrowingBiFunction to a BiFunction of the same input types, with the output type
wrapped in an Optional. |
static <K,V,R> BiFunction<K,V,R> |
Fun.uncheck2(@NotNull Fun.ThrowingBiFunction<? super K,? super V,? extends R> mayThrowOnApply)
Transform a
Fun.ThrowingBiFunction to an unchecked BiFunction of the same input and output type
parameters. |
Copyright © 2017–2020. All rights reserved.