- java.lang.Object
-
- life.expert.common.function.NullableUtils
-
public final class NullableUtils extends java.lang.Objectwraps the null value returned by the function into an empty flow event
-
-
Constructor Summary
Constructors Constructor Description NullableUtils()
-
Method Summary
Modifier and Type Method Description static <T1,T2,R>
java.util.function.BiFunction<T1,T2,reactor.core.publisher.Mono<R>>nullableBiFunction(java.util.function.BiFunction<T1,T2,R> function)Nullable bi function bi function.static <T,R>
java.util.function.Function<T,reactor.core.publisher.Mono<R>>nullableFunction(java.util.function.Function<T,R> function)Nullable function function.static <T1,T2,T3,R>
reactor.function.Function3<T1,T2,T3,reactor.core.publisher.Mono<R>>nullableFunction3(reactor.function.Function3<T1,T2,T3,R> function)Nullable function 3 function 3.static <T1,T2,T3,T4,R>
reactor.function.Function4<T1,T2,T3,T4,reactor.core.publisher.Mono<R>>nullableFunction4(reactor.function.Function4<T1,T2,T3,T4,R> function)Nullable function 4 function 4.static <T1,T2,T3,T4,T5,R>
reactor.function.Function5<T1,T2,T3,T4,T5,reactor.core.publisher.Mono<R>>nullableFunction5(reactor.function.Function5<T1,T2,T3,T4,T5,R> function)Nullable function 5 function 5.static <T1,T2,T3,T4,T5,T6,R>
reactor.function.Function6<T1,T2,T3,T4,T5,T6,reactor.core.publisher.Mono<R>>nullableFunction6(reactor.function.Function6<T1,T2,T3,T4,T5,T6,R> function)Nullable function 6 function 6.static <T1,T2,T3,T4,T5,T6,T7,R>
reactor.function.Function7<T1,T2,T3,T4,T5,T6,T7,reactor.core.publisher.Mono<R>>nullableFunction7(reactor.function.Function7<T1,T2,T3,T4,T5,T6,T7,R> function)Nullable function 7 function 7.static <T1,T2,T3,T4,T5,T6,T7,T8,R>
reactor.function.Function8<T1,T2,T3,T4,T5,T6,T7,T8,reactor.core.publisher.Mono<R>>nullableFunction8(reactor.function.Function8<T1,T2,T3,T4,T5,T6,T7,T8,R> function)Nullable function 8 function 8.static <R> java.util.function.Supplier<reactor.core.publisher.Mono<R>>nullableSupplier(java.util.function.Supplier<R> supplier)Nullable supplier supplier.
-
-
-
Method Detail
-
nullableFunction
public static <T,R> java.util.function.Function<T,reactor.core.publisher.Mono<R>> nullableFunction(java.util.function.Function<T,R> function)
Nullable function function.- Type Parameters:
T- the type parameterR- the type parameter- Parameters:
function- the function- Returns:
- the function
-
nullableBiFunction
public static <T1,T2,R> java.util.function.BiFunction<T1,T2,reactor.core.publisher.Mono<R>> nullableBiFunction(java.util.function.BiFunction<T1,T2,R> function)
Nullable bi function bi function.- Type Parameters:
T1- the type parameterT2- the type parameterR- the type parameter- Parameters:
function- the function- Returns:
- the bi function
-
nullableFunction3
public static <T1,T2,T3,R> reactor.function.Function3<T1,T2,T3,reactor.core.publisher.Mono<R>> nullableFunction3(reactor.function.Function3<T1,T2,T3,R> function)
Nullable function 3 function 3.- Type Parameters:
T1- the type parameterT2- the type parameterT3- the type parameterR- the type parameter- Parameters:
function- the function- Returns:
- the function 3
-
nullableFunction4
public static <T1,T2,T3,T4,R> reactor.function.Function4<T1,T2,T3,T4,reactor.core.publisher.Mono<R>> nullableFunction4(reactor.function.Function4<T1,T2,T3,T4,R> function)
Nullable function 4 function 4.- Type Parameters:
T1- the type parameterT2- the type parameterT3- the type parameterT4- the type parameterR- the type parameter- Parameters:
function- the function- Returns:
- the function 4
-
nullableFunction5
public static <T1,T2,T3,T4,T5,R> reactor.function.Function5<T1,T2,T3,T4,T5,reactor.core.publisher.Mono<R>> nullableFunction5(reactor.function.Function5<T1,T2,T3,T4,T5,R> function)
Nullable function 5 function 5.- Type Parameters:
T1- the type parameterT2- the type parameterT3- the type parameterT4- the type parameterT5- the type parameterR- the type parameter- Parameters:
function- the function- Returns:
- the function 5
-
nullableFunction6
public static <T1,T2,T3,T4,T5,T6,R> reactor.function.Function6<T1,T2,T3,T4,T5,T6,reactor.core.publisher.Mono<R>> nullableFunction6(reactor.function.Function6<T1,T2,T3,T4,T5,T6,R> function)
Nullable function 6 function 6.- Type Parameters:
T1- the type parameterT2- the type parameterT3- the type parameterT4- the type parameterT5- the type parameterT6- the type parameterR- the type parameter- Parameters:
function- the function- Returns:
- the function 6
-
nullableFunction7
public static <T1,T2,T3,T4,T5,T6,T7,R> reactor.function.Function7<T1,T2,T3,T4,T5,T6,T7,reactor.core.publisher.Mono<R>> nullableFunction7(reactor.function.Function7<T1,T2,T3,T4,T5,T6,T7,R> function)
Nullable function 7 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 parameterR- the type parameter- Parameters:
function- the function- Returns:
- the function 7
-
nullableFunction8
public static <T1,T2,T3,T4,T5,T6,T7,T8,R> reactor.function.Function8<T1,T2,T3,T4,T5,T6,T7,T8,reactor.core.publisher.Mono<R>> nullableFunction8(reactor.function.Function8<T1,T2,T3,T4,T5,T6,T7,T8,R> function)
Nullable function 8 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 parameterR- the type parameter- Parameters:
function- the function- Returns:
- the function 8
-
nullableSupplier
public static <R> java.util.function.Supplier<reactor.core.publisher.Mono<R>> nullableSupplier(java.util.function.Supplier<R> supplier)
Nullable supplier supplier.- Type Parameters:
R- the type parameter- Parameters:
supplier- the supplier- Returns:
- the supplier
-
-