- java.lang.Object
-
- life.expert.common.function.CheckedUtils
-
public final class CheckedUtils extends java.lang.Object- contains methods that wrap lambdas with checked exceptions inside 1) wrap to bool 2) wrap to unchecked exception 3) wrap to unchecked exception and log
-
-
Constructor Summary
Constructors Constructor Description CheckedUtils()
-
Method Summary
Modifier and Type Method Description static <T1,T2>
java.util.function.BiFunction<T1,T2,java.lang.Boolean>biConsumerToBoolean(cyclops.function.checked.CheckedBiConsumer<T1,T2> consumer)Bi consumer to boolean bi function.static <T1,T2>
java.util.function.BiFunction<T1,T2,reactor.core.publisher.Mono<java.lang.Boolean>>biConsumerToMono(cyclops.function.checked.CheckedBiConsumer<T1,T2> consumer)Bi consumer to mono bi function.static <T1,T2>
java.util.function.BiFunction<T1,T2,java.util.Optional<java.lang.Boolean>>biConsumerToOptional(cyclops.function.checked.CheckedBiConsumer<? super T1,? super T2> consumer)Bi consumer to optional bi function.static <T1,T2>
java.util.function.BiFunction<T1,T2,io.vavr.control.Try<java.lang.Boolean>>biConsumerToTry(cyclops.function.checked.CheckedBiConsumer<? super T1,? super T2> consumer)Bi consumer to try bi function.static <T1,T2,T3>
io.vavr.Function3<T1,T2,T3,java.lang.Boolean>consumer3ToBoolean(CheckedConsumer3<? super T1,? super T2,? super T3> consumer)Consumer 3 to boolean function 3.static <T1,T2,T3>
io.vavr.Function3<T1,T2,T3,reactor.core.publisher.Mono<java.lang.Boolean>>consumer3ToMono(CheckedConsumer3<? super T1,? super T2,? super T3> consumer)Consumer 3 to mono function 3.static <T1,T2,T3>
io.vavr.Function3<T1,T2,T3,java.util.Optional<java.lang.Boolean>>consumer3ToOptional(CheckedConsumer3<? super T1,? super T2,? super T3> consumer)Consumer 3 to optional function 3.static <T1,T2,T3>
io.vavr.Function3<T1,T2,T3,io.vavr.control.Try<java.lang.Boolean>>consumer3ToTry(CheckedConsumer3<? super T1,? super T2,? super T3> consumer)Consumer 3 to try function 3.static <T1,T2,T3,T4>
reactor.function.Function4<T1,T2,T3,T4,java.lang.Boolean>consumer4ToBoolean(CheckedConsumer4<? super T1,? super T2,? super T3,? super T4> consumer)Consumer 4 to boolean function 4.static <T1,T2,T3,T4>
reactor.function.Function4<T1,T2,T3,T4,reactor.core.publisher.Mono<java.lang.Boolean>>consumer4ToMono(CheckedConsumer4<? super T1,? super T2,? super T3,? super T4> consumer)Consumer 4 to mono function 4.static <T1,T2,T3,T4>
reactor.function.Function4<T1,T2,T3,T4,java.util.Optional<java.lang.Boolean>>consumer4ToOptional(CheckedConsumer4<? super T1,? super T2,? super T3,? super T4> consumer)Consumer 4 to optional function 4.static <T1,T2,T3,T4>
reactor.function.Function4<T1,T2,T3,T4,io.vavr.control.Try<java.lang.Boolean>>consumer4ToTry(CheckedConsumer4<? super T1,? super T2,? super T3,? super T4> consumer)Consumer 4 to try function 4.static <T1,T2,T3,T4,T5>
reactor.function.Function5<T1,T2,T3,T4,T5,java.lang.Boolean>consumer5ToBoolean(CheckedConsumer5<? super T1,? super T2,? super T3,? super T4,? super T5> consumer)Consumer 5 to boolean function 5.static <T1,T2,T3,T4,T5>
reactor.function.Function5<T1,T2,T3,T4,T5,reactor.core.publisher.Mono<java.lang.Boolean>>consumer5ToMono(CheckedConsumer5<? super T1,? super T2,? super T3,? super T4,? super T5> consumer)Consumer 5 to mono function 5.static <T1,T2,T3,T4,T5>
reactor.function.Function5<T1,T2,T3,T4,T5,java.util.Optional<java.lang.Boolean>>consumer5ToOptional(CheckedConsumer5<? super T1,? super T2,? super T3,? super T4,? super T5> consumer)Consumer 5 to optional function 5.static <T1,T2,T3,T4,T5>
reactor.function.Function5<T1,T2,T3,T4,T5,io.vavr.control.Try<java.lang.Boolean>>consumer5ToTry(CheckedConsumer5<? super T1,? super T2,? super T3,? super T4,? super T5> consumer)Consumer 5 to try function 5.static <T1,T2,T3,T4,T5,T6>
reactor.function.Function6<T1,T2,T3,T4,T5,T6,java.lang.Boolean>consumer6ToBoolean(CheckedConsumer6<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6> consumer)Consumer 6 to boolean function 6.static <T1,T2,T3,T4,T5,T6>
reactor.function.Function6<T1,T2,T3,T4,T5,T6,reactor.core.publisher.Mono<java.lang.Boolean>>consumer6ToMono(CheckedConsumer6<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6> consumer)Consumer 6 to mono function 6.static <T1,T2,T3,T4,T5,T6>
reactor.function.Function6<T1,T2,T3,T4,T5,T6,java.util.Optional<java.lang.Boolean>>consumer6ToOptional(CheckedConsumer6<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6> consumer)Consumer 6 to optional function 6.static <T1,T2,T3,T4,T5,T6>
reactor.function.Function6<T1,T2,T3,T4,T5,T6,io.vavr.control.Try<java.lang.Boolean>>consumer6ToTry(CheckedConsumer6<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6> consumer)Consumer 6 to try function 6.static <T1,T2,T3,T4,T5,T6,T7>
reactor.function.Function7<T1,T2,T3,T4,T5,T6,T7,java.lang.Boolean>consumer7ToBoolean(CheckedConsumer7<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,? super T7> consumer)Consumer 7 to boolean function 7.static <T1,T2,T3,T4,T5,T6,T7>
reactor.function.Function7<T1,T2,T3,T4,T5,T6,T7,reactor.core.publisher.Mono<java.lang.Boolean>>consumer7ToMono(CheckedConsumer7<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,? super T7> consumer)Consumer 7 to mono function 7.static <T1,T2,T3,T4,T5,T6,T7>
reactor.function.Function7<T1,T2,T3,T4,T5,T6,T7,java.util.Optional<java.lang.Boolean>>consumer7ToOptional(CheckedConsumer7<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,? super T7> consumer)Consumer 7 to optional function 7.static <T1,T2,T3,T4,T5,T6,T7>
reactor.function.Function7<T1,T2,T3,T4,T5,T6,T7,io.vavr.control.Try<java.lang.Boolean>>consumer7ToTry(CheckedConsumer7<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,? super T7> consumer)Consumer 7 to try function 7.static <T1,T2,T3,T4,T5,T6,T7,T8>
reactor.function.Function8<T1,T2,T3,T4,T5,T6,T7,T8,java.lang.Boolean>consumer8ToBoolean(CheckedConsumer8<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,? super T7,? super T8> consumer)Consumer 8 to boolean function 8.static <T1,T2,T3,T4,T5,T6,T7,T8>
reactor.function.Function8<T1,T2,T3,T4,T5,T6,T7,T8,reactor.core.publisher.Mono<java.lang.Boolean>>consumer8ToMono(CheckedConsumer8<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,? super T7,? super T8> consumer)Consumer 8 to mono function 8.static <T1,T2,T3,T4,T5,T6,T7,T8>
reactor.function.Function8<T1,T2,T3,T4,T5,T6,T7,T8,java.util.Optional<java.lang.Boolean>>consumer8ToOptional(CheckedConsumer8<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,? super T7,? super T8> consumer)Consumer 8 to optional function 8.static <T1,T2,T3,T4,T5,T6,T7,T8>
reactor.function.Function8<T1,T2,T3,T4,T5,T6,T7,T8,io.vavr.control.Try<java.lang.Boolean>>consumer8ToTry(CheckedConsumer8<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,? super T7,? super T8> consumer)Consumer 8 to try function 8.static <T> java.util.function.Function<T,java.lang.Boolean>consumerToBoolean(io.vavr.CheckedConsumer<T> consumer)Alias forCheckedConsumer.unchecked()static <T> java.util.function.Function<T,reactor.core.publisher.Mono<java.lang.Boolean>>consumerToMono(io.vavr.CheckedConsumer<T> consumer)Alias forCheckedConsumer.unchecked()static <T> java.util.function.Function<T,java.util.Optional<java.lang.Boolean>>consumerToOptional(io.vavr.CheckedConsumer<? super T> consumer)Lifts the givenconsumerinto a total function that returns anOptionresult.static <T> java.util.function.Function<T,io.vavr.control.Try<java.lang.Boolean>>consumerToTry(io.vavr.CheckedConsumer<? super T> consumer)Lifts the givenconsumerinto a total function that returns anTryresult.static java.util.function.Function<? super java.lang.Throwable,java.lang.IllegalArgumentException>illegalArgumentException(java.lang.String description)Illegal argument exception function.static <T> io.vavr.control.Try.Failure<T>illegalArgumentFailure()Alias for Try.failure(new IllegalArgumentException())static <T> io.vavr.control.Try.Failure<T>illegalArgumentFailure(java.lang.String description)Alias for Try.failure(new IllegalArgumentException(description))static <T> io.vavr.control.Try.Failure<T>illegalArgumentFailure(java.lang.String description, java.lang.Throwable cause)Alias for Try.failure(new IllegalArgumentException(description,cause))static java.util.function.Function<? super java.lang.Throwable,java.lang.IllegalStateException>illegalStateException(java.lang.String description)Illegal state exception function.static <T> io.vavr.control.Try.Failure<T>illegalStateFailure()Alias for Try.failure(new IllegalStateException())static <T> io.vavr.control.Try.Failure<T>illegalStateFailure(java.lang.String description)Alias for Try.failure(new IllegalStateException(description))static <T> io.vavr.control.Try.Failure<T>illegalStateFailure(java.lang.String description, java.lang.Throwable cause)Alias for Try.failure(new IllegalStateException(description,cause))static java.util.function.Function<? super java.lang.Throwable,java.lang.NullPointerException>nullPointerException(java.lang.String description)Null pointer exception function.static <T> io.vavr.control.Try.Failure<T>nullPointerFailure()Alias for Try.failure(new NullPointerException())static <T> io.vavr.control.Try.Failure<T>nullPointerFailure(java.lang.String description)Alias for Try.failure(new NullPointerException(description))static <T> java.util.function.Function<T,java.lang.Boolean>runnableToBoolean(io.vavr.CheckedRunnable runnable)Runnable to boolean function 1.static <T,R>
java.util.function.Function<T,reactor.core.publisher.Mono<java.lang.Boolean>>runnableToMono(io.vavr.CheckedRunnable runnable)Alias forCheckedConsumer.unchecked()static <T> java.util.function.Function<T,java.util.Optional<java.lang.Boolean>>runnableToOptional(io.vavr.CheckedRunnable runnable)Runnable to option function 1.static <T> java.util.function.Function<T,io.vavr.control.Try<java.lang.Boolean>>runnableToTry(io.vavr.CheckedRunnable runnable)Runnable to try function 1.static <T1,T2>
java.util.function.BiConsumer<T1,T2>uncheckedBiConsumer(cyclops.function.checked.CheckedBiConsumer<T1,T2> consumer)Unchecked bi consumer bi consumer.static <T1,T2>
java.util.function.BiConsumer<T1,T2>uncheckedBiConsumer(cyclops.function.checked.CheckedBiConsumer<T1,T2> consumer, java.lang.String errorMessage)Unchecked bi consumer bi consumer.static <T,U,R>
java.util.function.BiFunction<T,U,R>uncheckedBiFunction(cyclops.function.checked.CheckedBiFunction<T,U,R> f)Unchecked bi function bi function.static <T,U,R>
java.util.function.BiFunction<T,U,R>uncheckedBiFunction(cyclops.function.checked.CheckedBiFunction<T,U,R> f, java.lang.String errorMessage)Unchecked bi function bi function.static <T1,T2>
java.util.function.BiPredicate<T1,T2>uncheckedBiPredicate(cyclops.function.checked.CheckedBiPredicate<T1,T2> f)Unchecked bi predicate bi predicate.static <T1,T2>
java.util.function.BiPredicate<T1,T2>uncheckedBiPredicate(cyclops.function.checked.CheckedBiPredicate<T1,T2> f, java.lang.String errorMessage)Unchecked bi predicate bi predicate.static <T> java.util.function.Consumer<T>uncheckedConsumer(io.vavr.CheckedConsumer<T> consumer)Unchecked consumer consumer.static <T> java.util.function.Consumer<T>uncheckedConsumer(io.vavr.CheckedConsumer<T> consumer, java.lang.String errorMessage)Unchecked consumer consumer.static <T1,T2,T3>
reactor.function.Consumer3<T1,T2,T3>uncheckedConsumer3(CheckedConsumer3<T1,T2,T3> consumer)Unchecked consumer 3 consumer 3.static <T1,T2,T3>
reactor.function.Consumer3<T1,T2,T3>uncheckedConsumer3(CheckedConsumer3<T1,T2,T3> consumer, java.lang.String errorMessage)Unchecked consumer 3 consumer 3.static <T1,T2,T3,T4>
reactor.function.Consumer4<T1,T2,T3,T4>uncheckedConsumer4(CheckedConsumer4<T1,T2,T3,T4> consumer)Unchecked consumer 4 consumer 4.static <T1,T2,T3,T4>
reactor.function.Consumer4<T1,T2,T3,T4>uncheckedConsumer4(CheckedConsumer4<T1,T2,T3,T4> consumer, java.lang.String errorMessage)Unchecked consumer 4 consumer 4.static <T1,T2,T3,T4,T5>
reactor.function.Consumer5<T1,T2,T3,T4,T5>uncheckedConsumer5(CheckedConsumer5<T1,T2,T3,T4,T5> consumer)Unchecked consumer 5 consumer 5.static <T1,T2,T3,T4,T5>
reactor.function.Consumer5<T1,T2,T3,T4,T5>uncheckedConsumer5(CheckedConsumer5<T1,T2,T3,T4,T5> consumer, java.lang.String errorMessage)Unchecked consumer 5 consumer 5.static <T1,T2,T3,T4,T5,T6>
reactor.function.Consumer6<T1,T2,T3,T4,T5,T6>uncheckedConsumer6(CheckedConsumer6<T1,T2,T3,T4,T5,T6> consumer)Unchecked consumer 6 consumer 6.static <T1,T2,T3,T4,T5,T6>
reactor.function.Consumer6<T1,T2,T3,T4,T5,T6>uncheckedConsumer6(CheckedConsumer6<T1,T2,T3,T4,T5,T6> consumer, java.lang.String errorMessage)Unchecked consumer 6 consumer 6.static <T1,T2,T3,T4,T5,T6,T7>
reactor.function.Consumer7<T1,T2,T3,T4,T5,T6,T7>uncheckedConsumer7(CheckedConsumer7<T1,T2,T3,T4,T5,T6,T7> consumer)Unchecked consumer 7 consumer 7.static <T1,T2,T3,T4,T5,T6,T7>
reactor.function.Consumer7<T1,T2,T3,T4,T5,T6,T7>uncheckedConsumer7(CheckedConsumer7<T1,T2,T3,T4,T5,T6,T7> consumer, java.lang.String errorMessage)Unchecked consumer 7 consumer 7.static <T1,T2,T3,T4,T5,T6,T7,T8>
reactor.function.Consumer8<T1,T2,T3,T4,T5,T6,T7,T8>uncheckedConsumer8(CheckedConsumer8<T1,T2,T3,T4,T5,T6,T7,T8> consumer)Unchecked consumer 8 consumer 8.static <T1,T2,T3,T4,T5,T6,T7,T8>
reactor.function.Consumer8<T1,T2,T3,T4,T5,T6,T7,T8>uncheckedConsumer8(CheckedConsumer8<T1,T2,T3,T4,T5,T6,T7,T8> consumer, java.lang.String errorMessage)Unchecked consumer 8 consumer 8.static <T,R>
java.util.function.Function<T,R>uncheckedFunction(io.vavr.CheckedFunction1<T,R> f)Unchecked function function.static <T,R>
java.util.function.Function<T,R>uncheckedFunction(io.vavr.CheckedFunction1<T,R> f, java.lang.String errorMessage)Unchecked function function.static <T> java.util.function.Predicate<T>uncheckedPredicate(io.vavr.CheckedPredicate<T> f)Unchecked predicate predicate.static <T> java.util.function.Predicate<T>uncheckedPredicate(io.vavr.CheckedPredicate<T> f, java.lang.String errorMessage)Unchecked predicate predicate.static <T1,T2,T3>
reactor.function.Predicate3<T1,T2,T3>uncheckedPredicate3(CheckedPredicate3<T1,T2,T3> f)Unchecked predicate 3 predicate 3.static <T1,T2,T3>
reactor.function.Predicate3<T1,T2,T3>uncheckedPredicate3(CheckedPredicate3<T1,T2,T3> f, java.lang.String errorMessage)Unchecked predicate 3 predicate 3.static <T1,T2,T3,T4>
reactor.function.Predicate4<T1,T2,T3,T4>uncheckedPredicate4(CheckedPredicate4<T1,T2,T3,T4> f)Unchecked predicate 4 predicate 4.static <T1,T2,T3,T4>
reactor.function.Predicate4<T1,T2,T3,T4>uncheckedPredicate4(CheckedPredicate4<T1,T2,T3,T4> f, java.lang.String errorMessage)Unchecked predicate 4 predicate 4.static <T1,T2,T3,T4,T5>
reactor.function.Predicate5<T1,T2,T3,T4,T5>uncheckedPredicate5(CheckedPredicate5<T1,T2,T3,T4,T5> f)Unchecked predicate 5 predicate 5.static <T1,T2,T3,T4,T5>
reactor.function.Predicate5<T1,T2,T3,T4,T5>uncheckedPredicate5(CheckedPredicate5<T1,T2,T3,T4,T5> f, java.lang.String errorMessage)Unchecked predicate 5 predicate 5.static <T1,T2,T3,T4,T5,T6>
reactor.function.Predicate6<T1,T2,T3,T4,T5,T6>uncheckedPredicate6(CheckedPredicate6<T1,T2,T3,T4,T5,T6> f)Unchecked predicate 6 predicate 6.static <T1,T2,T3,T4,T5,T6>
reactor.function.Predicate6<T1,T2,T3,T4,T5,T6>uncheckedPredicate6(CheckedPredicate6<T1,T2,T3,T4,T5,T6> f, java.lang.String errorMessage)Unchecked predicate 6 predicate 6.static <T1,T2,T3,T4,T5,T6,T7>
reactor.function.Predicate7<T1,T2,T3,T4,T5,T6,T7>uncheckedPredicate7(CheckedPredicate7<T1,T2,T3,T4,T5,T6,T7> f)Unchecked predicate 7 predicate 7.static <T1,T2,T3,T4,T5,T6,T7>
reactor.function.Predicate7<T1,T2,T3,T4,T5,T6,T7>uncheckedPredicate7(CheckedPredicate7<T1,T2,T3,T4,T5,T6,T7> f, java.lang.String errorMessage)Unchecked predicate 7 predicate 7.static <T1,T2,T3,T4,T5,T6,T7,T8>
reactor.function.Predicate8<T1,T2,T3,T4,T5,T6,T7,T8>uncheckedPredicate8(CheckedPredicate8<T1,T2,T3,T4,T5,T6,T7,T8> f)Unchecked predicate 8 predicate 8.static <T1,T2,T3,T4,T5,T6,T7,T8>
reactor.function.Predicate8<T1,T2,T3,T4,T5,T6,T7,T8>uncheckedPredicate8(CheckedPredicate8<T1,T2,T3,T4,T5,T6,T7,T8> f, java.lang.String errorMessage)Unchecked predicate 8 predicate 8.static java.lang.RunnableuncheckedRunnable(io.vavr.CheckedRunnable runnable)Unchecked runnable runnable.static java.lang.RunnableuncheckedRunnable(io.vavr.CheckedRunnable runnable, java.lang.String errorMessage)Unchecked runnable runnable.static <E> java.util.function.Supplier<E>uncheckedSupplier(io.vavr.CheckedFunction0<E> supplier)Unchecked supplier supplier.static <E> java.util.function.Supplier<E>uncheckedSupplier(io.vavr.CheckedFunction0<E> supplier, java.lang.String errorMessage)Unchecked supplier supplier.
-
-
-
Method Detail
-
consumerToOptional
public static <T> java.util.function.Function<T,java.util.Optional<java.lang.Boolean>> consumerToOptional(io.vavr.CheckedConsumer<? super T> consumer)
Lifts the givenconsumerinto a total function that returns anOptionresult.- Type Parameters:
T- 1st argument- Parameters:
consumer- a function that is not defined for all values of the domain (e.g. by throwing)- Returns:
- a function that applies arguments to the given
consumerand returnsSome(null)if the function is defined for the given arguments, andNoneotherwise.
-
biConsumerToOptional
public static <T1,T2> java.util.function.BiFunction<T1,T2,java.util.Optional<java.lang.Boolean>> biConsumerToOptional(cyclops.function.checked.CheckedBiConsumer<? super T1,? super T2> consumer)
Bi consumer to optional bi function.- Type Parameters:
T1- the type parameterT2- the type parameter- Parameters:
consumer- the consumer- Returns:
- the bi function
-
consumer3ToOptional
public static <T1,T2,T3> io.vavr.Function3<T1,T2,T3,java.util.Optional<java.lang.Boolean>> consumer3ToOptional(CheckedConsumer3<? super T1,? super T2,? super T3> consumer)
Consumer 3 to optional function 3.- Type Parameters:
T1- the type parameterT2- the type parameterT3- the type parameter- Parameters:
consumer- the consumer- Returns:
- the function 3
-
consumer4ToOptional
public static <T1,T2,T3,T4> reactor.function.Function4<T1,T2,T3,T4,java.util.Optional<java.lang.Boolean>> consumer4ToOptional(CheckedConsumer4<? super T1,? super T2,? super T3,? super T4> consumer)
Consumer 4 to optional function 4.- Type Parameters:
T1- the type parameterT2- the type parameterT3- the type parameterT4- the type parameter- Parameters:
consumer- the consumer- Returns:
- the function 4
-
consumer5ToOptional
public static <T1,T2,T3,T4,T5> reactor.function.Function5<T1,T2,T3,T4,T5,java.util.Optional<java.lang.Boolean>> consumer5ToOptional(CheckedConsumer5<? super T1,? super T2,? super T3,? super T4,? super T5> consumer)
Consumer 5 to optional function 5.- Type Parameters:
T1- the type parameterT2- the type parameterT3- the type parameterT4- the type parameterT5- the type parameter- Parameters:
consumer- the consumer- Returns:
- the function 5
-
consumer6ToOptional
public static <T1,T2,T3,T4,T5,T6> reactor.function.Function6<T1,T2,T3,T4,T5,T6,java.util.Optional<java.lang.Boolean>> consumer6ToOptional(CheckedConsumer6<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6> consumer)
Consumer 6 to optional function 6.- Type Parameters:
T1- the type parameterT2- the type parameterT3- the type parameterT4- the type parameterT5- the type parameterT6- the type parameter- Parameters:
consumer- the consumer- Returns:
- the function 6
-
consumer7ToOptional
public static <T1,T2,T3,T4,T5,T6,T7> reactor.function.Function7<T1,T2,T3,T4,T5,T6,T7,java.util.Optional<java.lang.Boolean>> consumer7ToOptional(CheckedConsumer7<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,? super T7> consumer)
Consumer 7 to optional function 7.- Type Parameters:
T1- the type parameterT2- the type parameterT3- the type parameterT4- the type parameterT5- the type parameterT6- the type parameterT7- the type parameter- Parameters:
consumer- the consumer- Returns:
- the function 7
-
consumer8ToOptional
public static <T1,T2,T3,T4,T5,T6,T7,T8> reactor.function.Function8<T1,T2,T3,T4,T5,T6,T7,T8,java.util.Optional<java.lang.Boolean>> consumer8ToOptional(CheckedConsumer8<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,? super T7,? super T8> consumer)
Consumer 8 to optional function 8.- Type Parameters:
T1- the type parameterT2- the type parameterT3- the type parameterT4- the type parameterT5- the type parameterT6- the type parameterT7- the type parameterT8- the type parameter- Parameters:
consumer- the consumer- Returns:
- the function 8
-
consumerToTry
public static <T> java.util.function.Function<T,io.vavr.control.Try<java.lang.Boolean>> consumerToTry(io.vavr.CheckedConsumer<? super T> consumer)
Lifts the givenconsumerinto a total function that returns anTryresult.- Type Parameters:
T- 1st argument- Parameters:
consumer- a function that is not defined for all values of the domain (e.g. by throwing)- Returns:
- a function that applies arguments to the given
consumerand returnsSuccess(null)if the function is defined for the given arguments, andFailure(throwable)otherwise.
-
biConsumerToTry
public static <T1,T2> java.util.function.BiFunction<T1,T2,io.vavr.control.Try<java.lang.Boolean>> biConsumerToTry(cyclops.function.checked.CheckedBiConsumer<? super T1,? super T2> consumer)
Bi consumer to try bi function.- Type Parameters:
T1- the type parameterT2- the type parameter- Parameters:
consumer- the consumer- Returns:
- the bi function
-
consumer3ToTry
public static <T1,T2,T3> io.vavr.Function3<T1,T2,T3,io.vavr.control.Try<java.lang.Boolean>> consumer3ToTry(CheckedConsumer3<? super T1,? super T2,? super T3> consumer)
Consumer 3 to try function 3.- Type Parameters:
T1- the type parameterT2- the type parameterT3- the type parameter- Parameters:
consumer- the consumer- Returns:
- the function 3
-
consumer4ToTry
public static <T1,T2,T3,T4> reactor.function.Function4<T1,T2,T3,T4,io.vavr.control.Try<java.lang.Boolean>> consumer4ToTry(CheckedConsumer4<? super T1,? super T2,? super T3,? super T4> consumer)
Consumer 4 to try function 4.- Type Parameters:
T1- the type parameterT2- the type parameterT3- the type parameterT4- the type parameter- Parameters:
consumer- the consumer- Returns:
- the function 4
-
consumer5ToTry
public static <T1,T2,T3,T4,T5> reactor.function.Function5<T1,T2,T3,T4,T5,io.vavr.control.Try<java.lang.Boolean>> consumer5ToTry(CheckedConsumer5<? super T1,? super T2,? super T3,? super T4,? super T5> consumer)
Consumer 5 to try function 5.- Type Parameters:
T1- the type parameterT2- the type parameterT3- the type parameterT4- the type parameterT5- the type parameter- Parameters:
consumer- the consumer- Returns:
- the function 5
-
consumer6ToTry
public static <T1,T2,T3,T4,T5,T6> reactor.function.Function6<T1,T2,T3,T4,T5,T6,io.vavr.control.Try<java.lang.Boolean>> consumer6ToTry(CheckedConsumer6<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6> consumer)
Consumer 6 to try function 6.- Type Parameters:
T1- the type parameterT2- the type parameterT3- the type parameterT4- the type parameterT5- the type parameterT6- the type parameter- Parameters:
consumer- the consumer- Returns:
- the function 6
-
consumer7ToTry
public static <T1,T2,T3,T4,T5,T6,T7> reactor.function.Function7<T1,T2,T3,T4,T5,T6,T7,io.vavr.control.Try<java.lang.Boolean>> consumer7ToTry(CheckedConsumer7<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,? super T7> consumer)
Consumer 7 to try function 7.- Type Parameters:
T1- the type parameterT2- the type parameterT3- the type parameterT4- the type parameterT5- the type parameterT6- the type parameterT7- the type parameter- Parameters:
consumer- the consumer- Returns:
- the function 7
-
consumer8ToTry
public static <T1,T2,T3,T4,T5,T6,T7,T8> reactor.function.Function8<T1,T2,T3,T4,T5,T6,T7,T8,io.vavr.control.Try<java.lang.Boolean>> consumer8ToTry(CheckedConsumer8<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,? super T7,? super T8> consumer)
Consumer 8 to try function 8.- Type Parameters:
T1- the type parameterT2- the type parameterT3- the type parameterT4- the type parameterT5- the type parameterT6- the type parameterT7- the type parameterT8- the type parameter- Parameters:
consumer- the consumer- Returns:
- the function 8
-
consumerToBoolean
public static <T> java.util.function.Function<T,java.lang.Boolean> consumerToBoolean(io.vavr.CheckedConsumer<T> consumer)
Alias forCheckedConsumer.unchecked()- Type Parameters:
T- return type- Parameters:
consumer- A method reference- Returns:
- An unchecked wrapper of supplied
CheckedFunction0
-
biConsumerToBoolean
public static <T1,T2> java.util.function.BiFunction<T1,T2,java.lang.Boolean> biConsumerToBoolean(cyclops.function.checked.CheckedBiConsumer<T1,T2> consumer)
Bi consumer to boolean bi function.- Type Parameters:
T1- the type parameterT2- the type parameter- Parameters:
consumer- the consumer- Returns:
- the bi function
-
consumer3ToBoolean
public static <T1,T2,T3> io.vavr.Function3<T1,T2,T3,java.lang.Boolean> consumer3ToBoolean(CheckedConsumer3<? super T1,? super T2,? super T3> consumer)
Consumer 3 to boolean function 3.- Type Parameters:
T1- the type parameterT2- the type parameterT3- the type parameter- Parameters:
consumer- the consumer- Returns:
- the function 3
-
consumer4ToBoolean
public static <T1,T2,T3,T4> reactor.function.Function4<T1,T2,T3,T4,java.lang.Boolean> consumer4ToBoolean(CheckedConsumer4<? super T1,? super T2,? super T3,? super T4> consumer)
Consumer 4 to boolean function 4.- Type Parameters:
T1- the type parameterT2- the type parameterT3- the type parameterT4- the type parameter- Parameters:
consumer- the consumer- Returns:
- the function 4
-
consumer5ToBoolean
public static <T1,T2,T3,T4,T5> reactor.function.Function5<T1,T2,T3,T4,T5,java.lang.Boolean> consumer5ToBoolean(CheckedConsumer5<? super T1,? super T2,? super T3,? super T4,? super T5> consumer)
Consumer 5 to boolean function 5.- Type Parameters:
T1- the type parameterT2- the type parameterT3- the type parameterT4- the type parameterT5- the type parameter- Parameters:
consumer- the consumer- Returns:
- the function 5
-
consumer6ToBoolean
public static <T1,T2,T3,T4,T5,T6> reactor.function.Function6<T1,T2,T3,T4,T5,T6,java.lang.Boolean> consumer6ToBoolean(CheckedConsumer6<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6> consumer)
Consumer 6 to boolean function 6.- Type Parameters:
T1- the type parameterT2- the type parameterT3- the type parameterT4- the type parameterT5- the type parameterT6- the type parameter- Parameters:
consumer- the consumer- Returns:
- the function 6
-
consumer7ToBoolean
public static <T1,T2,T3,T4,T5,T6,T7> reactor.function.Function7<T1,T2,T3,T4,T5,T6,T7,java.lang.Boolean> consumer7ToBoolean(CheckedConsumer7<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,? super T7> consumer)
Consumer 7 to boolean function 7.- Type Parameters:
T1- the type parameterT2- the type parameterT3- the type parameterT4- the type parameterT5- the type parameterT6- the type parameterT7- the type parameter- Parameters:
consumer- the consumer- Returns:
- the function 7
-
consumer8ToBoolean
public static <T1,T2,T3,T4,T5,T6,T7,T8> reactor.function.Function8<T1,T2,T3,T4,T5,T6,T7,T8,java.lang.Boolean> consumer8ToBoolean(CheckedConsumer8<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,? super T7,? super T8> consumer)
Consumer 8 to boolean function 8.- Type Parameters:
T1- the type parameterT2- the type parameterT3- the type parameterT4- the type parameterT5- the type parameterT6- the type parameterT7- the type parameterT8- the type parameter- Parameters:
consumer- the consumer- Returns:
- the function 8
-
consumerToMono
public static <T> java.util.function.Function<T,reactor.core.publisher.Mono<java.lang.Boolean>> consumerToMono(io.vavr.CheckedConsumer<T> consumer)
Alias forCheckedConsumer.unchecked()- Type Parameters:
T- return type- Parameters:
consumer- A method reference- Returns:
- An unchecked wrapper of supplied
CheckedFunction0
-
biConsumerToMono
public static <T1,T2> java.util.function.BiFunction<T1,T2,reactor.core.publisher.Mono<java.lang.Boolean>> biConsumerToMono(cyclops.function.checked.CheckedBiConsumer<T1,T2> consumer)
Bi consumer to mono bi function.- Type Parameters:
T1- the type parameterT2- the type parameter- Parameters:
consumer- the consumer- Returns:
- the bi function
-
consumer3ToMono
public static <T1,T2,T3> io.vavr.Function3<T1,T2,T3,reactor.core.publisher.Mono<java.lang.Boolean>> consumer3ToMono(CheckedConsumer3<? super T1,? super T2,? super T3> consumer)
Consumer 3 to mono function 3.- Type Parameters:
T1- the type parameterT2- the type parameterT3- the type parameter- Parameters:
consumer- the consumer- Returns:
- the function 3
-
consumer4ToMono
public static <T1,T2,T3,T4> reactor.function.Function4<T1,T2,T3,T4,reactor.core.publisher.Mono<java.lang.Boolean>> consumer4ToMono(CheckedConsumer4<? super T1,? super T2,? super T3,? super T4> consumer)
Consumer 4 to mono function 4.- Type Parameters:
T1- the type parameterT2- the type parameterT3- the type parameterT4- the type parameter- Parameters:
consumer- the consumer- Returns:
- the function 4
-
consumer5ToMono
public static <T1,T2,T3,T4,T5> reactor.function.Function5<T1,T2,T3,T4,T5,reactor.core.publisher.Mono<java.lang.Boolean>> consumer5ToMono(CheckedConsumer5<? super T1,? super T2,? super T3,? super T4,? super T5> consumer)
Consumer 5 to mono function 5.- Type Parameters:
T1- the type parameterT2- the type parameterT3- the type parameterT4- the type parameterT5- the type parameter- Parameters:
consumer- the consumer- Returns:
- the function 5
-
consumer6ToMono
public static <T1,T2,T3,T4,T5,T6> reactor.function.Function6<T1,T2,T3,T4,T5,T6,reactor.core.publisher.Mono<java.lang.Boolean>> consumer6ToMono(CheckedConsumer6<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6> consumer)
Consumer 6 to mono function 6.- Type Parameters:
T1- the type parameterT2- the type parameterT3- the type parameterT4- the type parameterT5- the type parameterT6- the type parameter- Parameters:
consumer- the consumer- Returns:
- the function 6
-
consumer7ToMono
public static <T1,T2,T3,T4,T5,T6,T7> reactor.function.Function7<T1,T2,T3,T4,T5,T6,T7,reactor.core.publisher.Mono<java.lang.Boolean>> consumer7ToMono(CheckedConsumer7<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,? super T7> consumer)
Consumer 7 to mono function 7.- Type Parameters:
T1- the type parameterT2- the type parameterT3- the type parameterT4- the type parameterT5- the type parameterT6- the type parameterT7- the type parameter- Parameters:
consumer- the consumer- Returns:
- the function 7
-
consumer8ToMono
public static <T1,T2,T3,T4,T5,T6,T7,T8> reactor.function.Function8<T1,T2,T3,T4,T5,T6,T7,T8,reactor.core.publisher.Mono<java.lang.Boolean>> consumer8ToMono(CheckedConsumer8<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,? super T7,? super T8> consumer)
Consumer 8 to mono function 8.- Type Parameters:
T1- the type parameterT2- the type parameterT3- the type parameterT4- the type parameterT5- the type parameterT6- the type parameterT7- the type parameterT8- the type parameter- Parameters:
consumer- the consumer- Returns:
- the function 8
-
runnableToOptional
public static <T> java.util.function.Function<T,java.util.Optional<java.lang.Boolean>> runnableToOptional(io.vavr.CheckedRunnable runnable)
Runnable to option function 1.- Type Parameters:
T- the type parameter- Parameters:
runnable- the runnable- Returns:
- the function 1
-
runnableToTry
public static <T> java.util.function.Function<T,io.vavr.control.Try<java.lang.Boolean>> runnableToTry(io.vavr.CheckedRunnable runnable)
Runnable to try function 1.- Type Parameters:
T- the type parameter- Parameters:
runnable- the runnable- Returns:
- the function 1
-
runnableToBoolean
public static <T> java.util.function.Function<T,java.lang.Boolean> runnableToBoolean(io.vavr.CheckedRunnable runnable)
Runnable to boolean function 1.- Type Parameters:
T- the type parameter- Parameters:
runnable- the runnable- Returns:
- the function 1
-
runnableToMono
public static <T,R> java.util.function.Function<T,reactor.core.publisher.Mono<java.lang.Boolean>> runnableToMono(io.vavr.CheckedRunnable runnable)
Alias forCheckedConsumer.unchecked()- Type Parameters:
T- return typeR- the type parameter- Parameters:
runnable- the runnable- Returns:
- An unchecked wrapper of supplied
CheckedFunction0
-
uncheckedConsumer
public static <T> java.util.function.Consumer<T> uncheckedConsumer(io.vavr.CheckedConsumer<T> consumer)
Unchecked consumer consumer.- Type Parameters:
T- the type parameter- Parameters:
consumer- the consumer- Returns:
- the consumer
-
uncheckedBiConsumer
public static <T1,T2> java.util.function.BiConsumer<T1,T2> uncheckedBiConsumer(cyclops.function.checked.CheckedBiConsumer<T1,T2> consumer)
Unchecked bi consumer bi consumer.- Type Parameters:
T1- the type parameterT2- the type parameter- Parameters:
consumer- the consumer- Returns:
- the bi consumer
-
uncheckedConsumer3
public static <T1,T2,T3> reactor.function.Consumer3<T1,T2,T3> uncheckedConsumer3(CheckedConsumer3<T1,T2,T3> consumer)
Unchecked consumer 3 consumer 3.- Type Parameters:
T1- the type parameterT2- the type parameterT3- the type parameter- Parameters:
consumer- the consumer- Returns:
- the consumer 3
-
uncheckedConsumer4
public static <T1,T2,T3,T4> reactor.function.Consumer4<T1,T2,T3,T4> uncheckedConsumer4(CheckedConsumer4<T1,T2,T3,T4> consumer)
Unchecked consumer 4 consumer 4.- Type Parameters:
T1- the type parameterT2- the type parameterT3- the type parameterT4- the type parameter- Parameters:
consumer- the consumer- Returns:
- the consumer 4
-
uncheckedConsumer5
public static <T1,T2,T3,T4,T5> reactor.function.Consumer5<T1,T2,T3,T4,T5> uncheckedConsumer5(CheckedConsumer5<T1,T2,T3,T4,T5> consumer)
Unchecked consumer 5 consumer 5.- Type Parameters:
T1- the type parameterT2- the type parameterT3- the type parameterT4- the type parameterT5- the type parameter- Parameters:
consumer- the consumer- Returns:
- the consumer 5
-
uncheckedConsumer6
public static <T1,T2,T3,T4,T5,T6> reactor.function.Consumer6<T1,T2,T3,T4,T5,T6> uncheckedConsumer6(CheckedConsumer6<T1,T2,T3,T4,T5,T6> consumer)
Unchecked consumer 6 consumer 6.- Type Parameters:
T1- the type parameterT2- the type parameterT3- the type parameterT4- the type parameterT5- the type parameterT6- the type parameter- Parameters:
consumer- the consumer- Returns:
- the consumer 6
-
uncheckedConsumer7
public static <T1,T2,T3,T4,T5,T6,T7> reactor.function.Consumer7<T1,T2,T3,T4,T5,T6,T7> uncheckedConsumer7(CheckedConsumer7<T1,T2,T3,T4,T5,T6,T7> consumer)
Unchecked consumer 7 consumer 7.- Type Parameters:
T1- the type parameterT2- the type parameterT3- the type parameterT4- the type parameterT5- the type parameterT6- the type parameterT7- the type parameter- Parameters:
consumer- the consumer- Returns:
- the consumer 7
-
uncheckedConsumer8
public static <T1,T2,T3,T4,T5,T6,T7,T8> reactor.function.Consumer8<T1,T2,T3,T4,T5,T6,T7,T8> uncheckedConsumer8(CheckedConsumer8<T1,T2,T3,T4,T5,T6,T7,T8> consumer)
Unchecked consumer 8 consumer 8.- Type Parameters:
T1- the type parameterT2- the type parameterT3- the type parameterT4- the type parameterT5- the type parameterT6- the type parameterT7- the type parameterT8- the type parameter- Parameters:
consumer- the consumer- Returns:
- the consumer 8
-
uncheckedRunnable
public static java.lang.Runnable uncheckedRunnable(io.vavr.CheckedRunnable runnable)
Unchecked runnable runnable.- Parameters:
runnable- the runnable- Returns:
- the runnable
-
uncheckedSupplier
public static <E> java.util.function.Supplier<E> uncheckedSupplier(io.vavr.CheckedFunction0<E> supplier)
Unchecked supplier supplier.- Type Parameters:
E- the type parameter- Parameters:
supplier- the supplier- Returns:
- the supplier
-
uncheckedFunction
public static <T,R> java.util.function.Function<T,R> uncheckedFunction(io.vavr.CheckedFunction1<T,R> f)
Unchecked function function.- Type Parameters:
T- the type parameterR- the type parameter- Parameters:
f- the f- Returns:
- the function
-
uncheckedBiFunction
public static <T,U,R> java.util.function.BiFunction<T,U,R> uncheckedBiFunction(cyclops.function.checked.CheckedBiFunction<T,U,R> f)
Unchecked bi function bi function.- Type Parameters:
T- the type parameterU- the type parameterR- the type parameter- Parameters:
f- the f- Returns:
- the bi function
-
uncheckedPredicate
public static <T> java.util.function.Predicate<T> uncheckedPredicate(io.vavr.CheckedPredicate<T> f)
Unchecked predicate predicate.- Type Parameters:
T- the type parameter- Parameters:
f- the f- Returns:
- the predicate
-
uncheckedBiPredicate
public static <T1,T2> java.util.function.BiPredicate<T1,T2> uncheckedBiPredicate(cyclops.function.checked.CheckedBiPredicate<T1,T2> f)
Unchecked bi predicate bi predicate.- Type Parameters:
T1- the type parameterT2- the type parameter- Parameters:
f- the f- Returns:
- the bi predicate
-
uncheckedPredicate3
public static <T1,T2,T3> reactor.function.Predicate3<T1,T2,T3> uncheckedPredicate3(CheckedPredicate3<T1,T2,T3> f)
Unchecked predicate 3 predicate 3.- Type Parameters:
T1- the type parameterT2- the type parameterT3- the type parameter- Parameters:
f- the f- Returns:
- the predicate 3
-
uncheckedPredicate4
public static <T1,T2,T3,T4> reactor.function.Predicate4<T1,T2,T3,T4> uncheckedPredicate4(CheckedPredicate4<T1,T2,T3,T4> f)
Unchecked predicate 4 predicate 4.- Type Parameters:
T1- the type parameterT2- the type parameterT3- the type parameterT4- the type parameter- Parameters:
f- the f- Returns:
- the predicate 4
-
uncheckedPredicate5
public static <T1,T2,T3,T4,T5> reactor.function.Predicate5<T1,T2,T3,T4,T5> uncheckedPredicate5(CheckedPredicate5<T1,T2,T3,T4,T5> f)
Unchecked predicate 5 predicate 5.- Type Parameters:
T1- the type parameterT2- the type parameterT3- the type parameterT4- the type parameterT5- the type parameter- Parameters:
f- the f- Returns:
- the predicate 5
-
uncheckedPredicate6
public static <T1,T2,T3,T4,T5,T6> reactor.function.Predicate6<T1,T2,T3,T4,T5,T6> uncheckedPredicate6(CheckedPredicate6<T1,T2,T3,T4,T5,T6> f)
Unchecked predicate 6 predicate 6.- Type Parameters:
T1- the type parameterT2- the type parameterT3- the type parameterT4- the type parameterT5- the type parameterT6- the type parameter- Parameters:
f- the f- Returns:
- the predicate 6
-
uncheckedPredicate7
public static <T1,T2,T3,T4,T5,T6,T7> reactor.function.Predicate7<T1,T2,T3,T4,T5,T6,T7> uncheckedPredicate7(CheckedPredicate7<T1,T2,T3,T4,T5,T6,T7> f)
Unchecked predicate 7 predicate 7.- Type Parameters:
T1- the type parameterT2- the type parameterT3- the type parameterT4- the type parameterT5- the type parameterT6- the type parameterT7- the type parameter- Parameters:
f- the f- Returns:
- the predicate 7
-
uncheckedPredicate8
public static <T1,T2,T3,T4,T5,T6,T7,T8> reactor.function.Predicate8<T1,T2,T3,T4,T5,T6,T7,T8> uncheckedPredicate8(CheckedPredicate8<T1,T2,T3,T4,T5,T6,T7,T8> f)
Unchecked predicate 8 predicate 8.- Type Parameters:
T1- the type parameterT2- the type parameterT3- the type parameterT4- the type parameterT5- the type parameterT6- the type parameterT7- the type parameterT8- the type parameter- Parameters:
f- the f- Returns:
- the predicate 8
-
uncheckedConsumer
public static <T> java.util.function.Consumer<T> uncheckedConsumer(io.vavr.CheckedConsumer<T> consumer, java.lang.String errorMessage)Unchecked consumer consumer.- Type Parameters:
T- the type parameter- Parameters:
consumer- the consumererrorMessage- the error message- Returns:
- the consumer
-
uncheckedBiConsumer
public static <T1,T2> java.util.function.BiConsumer<T1,T2> uncheckedBiConsumer(cyclops.function.checked.CheckedBiConsumer<T1,T2> consumer, java.lang.String errorMessage)Unchecked bi consumer bi consumer.- Type Parameters:
T1- the type parameterT2- the type parameter- Parameters:
consumer- the consumererrorMessage- the error message- Returns:
- the bi consumer
-
uncheckedConsumer3
public static <T1,T2,T3> reactor.function.Consumer3<T1,T2,T3> uncheckedConsumer3(CheckedConsumer3<T1,T2,T3> consumer, java.lang.String errorMessage)
Unchecked consumer 3 consumer 3.- Type Parameters:
T1- the type parameterT2- the type parameterT3- the type parameter- Parameters:
consumer- the consumererrorMessage- the error message- Returns:
- the consumer 3
-
uncheckedConsumer4
public static <T1,T2,T3,T4> reactor.function.Consumer4<T1,T2,T3,T4> uncheckedConsumer4(CheckedConsumer4<T1,T2,T3,T4> consumer, java.lang.String errorMessage)
Unchecked consumer 4 consumer 4.- Type Parameters:
T1- the type parameterT2- the type parameterT3- the type parameterT4- the type parameter- Parameters:
consumer- the consumererrorMessage- the error message- Returns:
- the consumer 4
-
uncheckedConsumer5
public static <T1,T2,T3,T4,T5> reactor.function.Consumer5<T1,T2,T3,T4,T5> uncheckedConsumer5(CheckedConsumer5<T1,T2,T3,T4,T5> consumer, java.lang.String errorMessage)
Unchecked consumer 5 consumer 5.- Type Parameters:
T1- the type parameterT2- the type parameterT3- the type parameterT4- the type parameterT5- the type parameter- Parameters:
consumer- the consumererrorMessage- the error message- Returns:
- the consumer 5
-
uncheckedConsumer6
public static <T1,T2,T3,T4,T5,T6> reactor.function.Consumer6<T1,T2,T3,T4,T5,T6> uncheckedConsumer6(CheckedConsumer6<T1,T2,T3,T4,T5,T6> consumer, java.lang.String errorMessage)
Unchecked consumer 6 consumer 6.- Type Parameters:
T1- the type parameterT2- the type parameterT3- the type parameterT4- the type parameterT5- the type parameterT6- the type parameter- Parameters:
consumer- the consumererrorMessage- the error message- Returns:
- the consumer 6
-
uncheckedConsumer7
public static <T1,T2,T3,T4,T5,T6,T7> reactor.function.Consumer7<T1,T2,T3,T4,T5,T6,T7> uncheckedConsumer7(CheckedConsumer7<T1,T2,T3,T4,T5,T6,T7> consumer, java.lang.String errorMessage)
Unchecked consumer 7 consumer 7.- Type Parameters:
T1- the type parameterT2- the type parameterT3- the type parameterT4- the type parameterT5- the type parameterT6- the type parameterT7- the type parameter- Parameters:
consumer- the consumererrorMessage- the error message- Returns:
- the consumer 7
-
uncheckedConsumer8
public static <T1,T2,T3,T4,T5,T6,T7,T8> reactor.function.Consumer8<T1,T2,T3,T4,T5,T6,T7,T8> uncheckedConsumer8(CheckedConsumer8<T1,T2,T3,T4,T5,T6,T7,T8> consumer, java.lang.String errorMessage)
Unchecked consumer 8 consumer 8.- Type Parameters:
T1- the type parameterT2- the type parameterT3- the type parameterT4- the type parameterT5- the type parameterT6- the type parameterT7- the type parameterT8- the type parameter- Parameters:
consumer- the consumererrorMessage- the error message- Returns:
- the consumer 8
-
uncheckedRunnable
public static java.lang.Runnable uncheckedRunnable(io.vavr.CheckedRunnable runnable, java.lang.String errorMessage)Unchecked runnable runnable.- Parameters:
runnable- the runnableerrorMessage- the error message- Returns:
- the runnable
-
uncheckedSupplier
public static <E> java.util.function.Supplier<E> uncheckedSupplier(io.vavr.CheckedFunction0<E> supplier, java.lang.String errorMessage)Unchecked supplier supplier.- Type Parameters:
E- the type parameter- Parameters:
supplier- the suppliererrorMessage- the error message- Returns:
- the supplier
-
uncheckedFunction
public static <T,R> java.util.function.Function<T,R> uncheckedFunction(io.vavr.CheckedFunction1<T,R> f, java.lang.String errorMessage)Unchecked function function.- Type Parameters:
T- the type parameterR- the type parameter- Parameters:
f- the ferrorMessage- the error message- Returns:
- the function
-
uncheckedBiFunction
public static <T,U,R> java.util.function.BiFunction<T,U,R> uncheckedBiFunction(cyclops.function.checked.CheckedBiFunction<T,U,R> f, java.lang.String errorMessage)Unchecked bi function bi function.- Type Parameters:
T- the type parameterU- the type parameterR- the type parameter- Parameters:
f- the ferrorMessage- the error message- Returns:
- the bi function
-
uncheckedPredicate
public static <T> java.util.function.Predicate<T> uncheckedPredicate(io.vavr.CheckedPredicate<T> f, java.lang.String errorMessage)Unchecked predicate predicate.- Type Parameters:
T- the type parameter- Parameters:
f- the ferrorMessage- the error message- Returns:
- the predicate
-
uncheckedBiPredicate
public static <T1,T2> java.util.function.BiPredicate<T1,T2> uncheckedBiPredicate(cyclops.function.checked.CheckedBiPredicate<T1,T2> f, java.lang.String errorMessage)Unchecked bi predicate bi predicate.- Type Parameters:
T1- the type parameterT2- the type parameter- Parameters:
f- the ferrorMessage- the error message- Returns:
- the bi predicate
-
uncheckedPredicate3
public static <T1,T2,T3> reactor.function.Predicate3<T1,T2,T3> uncheckedPredicate3(CheckedPredicate3<T1,T2,T3> f, java.lang.String errorMessage)
Unchecked predicate 3 predicate 3.- Type Parameters:
T1- the type parameterT2- the type parameterT3- the type parameter- Parameters:
f- the ferrorMessage- the error message- Returns:
- the predicate 3
-
uncheckedPredicate4
public static <T1,T2,T3,T4> reactor.function.Predicate4<T1,T2,T3,T4> uncheckedPredicate4(CheckedPredicate4<T1,T2,T3,T4> f, java.lang.String errorMessage)
Unchecked predicate 4 predicate 4.- Type Parameters:
T1- the type parameterT2- the type parameterT3- the type parameterT4- the type parameter- Parameters:
f- the ferrorMessage- the error message- Returns:
- the predicate 4
-
uncheckedPredicate5
public static <T1,T2,T3,T4,T5> reactor.function.Predicate5<T1,T2,T3,T4,T5> uncheckedPredicate5(CheckedPredicate5<T1,T2,T3,T4,T5> f, java.lang.String errorMessage)
Unchecked predicate 5 predicate 5.- Type Parameters:
T1- the type parameterT2- the type parameterT3- the type parameterT4- the type parameterT5- the type parameter- Parameters:
f- the ferrorMessage- the error message- Returns:
- the predicate 5
-
uncheckedPredicate6
public static <T1,T2,T3,T4,T5,T6> reactor.function.Predicate6<T1,T2,T3,T4,T5,T6> uncheckedPredicate6(CheckedPredicate6<T1,T2,T3,T4,T5,T6> f, java.lang.String errorMessage)
Unchecked predicate 6 predicate 6.- Type Parameters:
T1- the type parameterT2- the type parameterT3- the type parameterT4- the type parameterT5- the type parameterT6- the type parameter- Parameters:
f- the ferrorMessage- the error message- Returns:
- the predicate 6
-
uncheckedPredicate7
public static <T1,T2,T3,T4,T5,T6,T7> reactor.function.Predicate7<T1,T2,T3,T4,T5,T6,T7> uncheckedPredicate7(CheckedPredicate7<T1,T2,T3,T4,T5,T6,T7> f, java.lang.String errorMessage)
Unchecked predicate 7 predicate 7.- Type Parameters:
T1- the type parameterT2- the type parameterT3- the type parameterT4- the type parameterT5- the type parameterT6- the type parameterT7- the type parameter- Parameters:
f- the ferrorMessage- the error message- Returns:
- the predicate 7
-
uncheckedPredicate8
public static <T1,T2,T3,T4,T5,T6,T7,T8> reactor.function.Predicate8<T1,T2,T3,T4,T5,T6,T7,T8> uncheckedPredicate8(CheckedPredicate8<T1,T2,T3,T4,T5,T6,T7,T8> f, java.lang.String errorMessage)
Unchecked predicate 8 predicate 8.- Type Parameters:
T1- the type parameterT2- the type parameterT3- the type parameterT4- the type parameterT5- the type parameterT6- the type parameterT7- the type parameterT8- the type parameter- Parameters:
f- the ferrorMessage- the error message- Returns:
- the predicate 8
-
nullPointerException
public static java.util.function.Function<? super java.lang.Throwable,java.lang.NullPointerException> nullPointerException(java.lang.String description)
Null pointer exception function.- Parameters:
description- the description- Returns:
- the function
-
illegalArgumentException
public static java.util.function.Function<? super java.lang.Throwable,java.lang.IllegalArgumentException> illegalArgumentException(java.lang.String description)
Illegal argument exception function.- Parameters:
description- the description- Returns:
- the function
-
illegalStateException
public static java.util.function.Function<? super java.lang.Throwable,java.lang.IllegalStateException> illegalStateException(java.lang.String description)
Illegal state exception function.- Parameters:
description- the description- Returns:
- the function
-
nullPointerFailure
public static <T> io.vavr.control.Try.Failure<T> nullPointerFailure()
Alias for Try.failure(new NullPointerException())- Type Parameters:
T- Component type of theTry.- Returns:
- A new
Try.Failure.
-
nullPointerFailure
public static <T> io.vavr.control.Try.Failure<T> nullPointerFailure(java.lang.String description)
Alias for Try.failure(new NullPointerException(description))- Type Parameters:
T- Component type of theTry.- Parameters:
description- the description- Returns:
- A new
Try.Failure.
-
illegalArgumentFailure
public static <T> io.vavr.control.Try.Failure<T> illegalArgumentFailure()
Alias for Try.failure(new IllegalArgumentException())- Type Parameters:
T- Component type of theTry.- Returns:
- A new
Try.Failure.
-
illegalArgumentFailure
public static <T> io.vavr.control.Try.Failure<T> illegalArgumentFailure(java.lang.String description)
Alias for Try.failure(new IllegalArgumentException(description))- Type Parameters:
T- Component type of theTry.- Parameters:
description- the description- Returns:
- A new
Try.Failure.
-
illegalArgumentFailure
public static <T> io.vavr.control.Try.Failure<T> illegalArgumentFailure(java.lang.String description, java.lang.Throwable cause)Alias for Try.failure(new IllegalArgumentException(description,cause))- Type Parameters:
T- Component type of theTry.- Parameters:
description- the descriptioncause- the cause- Returns:
- A new
Try.Failure.
-
illegalStateFailure
public static <T> io.vavr.control.Try.Failure<T> illegalStateFailure()
Alias for Try.failure(new IllegalStateException())- Type Parameters:
T- Component type of theTry.- Returns:
- A new
Try.Failure.
-
illegalStateFailure
public static <T> io.vavr.control.Try.Failure<T> illegalStateFailure(java.lang.String description)
Alias for Try.failure(new IllegalStateException(description))- Type Parameters:
T- Component type of theTry.- Parameters:
description- the description- Returns:
- A new
Try.Failure.
-
illegalStateFailure
public static <T> io.vavr.control.Try.Failure<T> illegalStateFailure(java.lang.String description, java.lang.Throwable cause)Alias for Try.failure(new IllegalStateException(description,cause))- Type Parameters:
T- Component type of theTry.- Parameters:
description- the descriptioncause- the cause- Returns:
- A new
Try.Failure.
-
-