| Modifier and Type | Method and Description |
|---|---|
static <T> Function<T,Result<Nothing>> |
Fun.resultNothing1(@NotNull Fun.ThrowingConsumer<? super T> mayThrowOnAccept)
Transform a
Fun.ThrowingConsumer to a Function over the same input type parameter, but which returns
a Result of success type Nothing. |
static <T> Fun.ThrowingFunction<T,Nothing> |
Fun.throwingVoidToNothing1(@NotNull Fun.ThrowingConsumer<? super T> mayThrowOnAccept)
Parallel method to
Nothing.voidToNothing1(Consumer), for transforming a Fun.ThrowingConsumer to a
Fun.ThrowingFunction that returns Nothing. |
static <T> Consumer<T> |
Fun.tryOrVoid1(@NotNull Fun.ThrowingConsumer<? super T> mayThrowOnAccept)
Transform a
Fun.ThrowingConsumer to a Consumer of the same input type, that simply suppresses any
exceptions if thrown. |
static <T> Consumer<T> |
Fun.uncheckVoid1(@NotNull Fun.ThrowingConsumer<? super T> mayThrowOnAccept)
Transform a
Fun.ThrowingConsumer to a Consumer of the same input type parameter. |
Copyright © 2017–2020. All rights reserved.