Module life.expert

Class NullableUtils


  • public final class NullableUtils
    extends java.lang.Object
    wraps 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NullableUtils

        public NullableUtils()
    • 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 parameter
        R - 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 parameter
        T2 - the type parameter
        R - 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 parameter
        T2 - the type parameter
        T3 - the type parameter
        R - 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 parameter
        T2 - the type parameter
        T3 - the type parameter
        T4 - the type parameter
        R - 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 parameter
        T2 - the type parameter
        T3 - the type parameter
        T4 - the type parameter
        T5 - the type parameter
        R - 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 parameter
        T2 - the type parameter
        T3 - the type parameter
        T4 - the type parameter
        T5 - the type parameter
        T6 - the type parameter
        R - 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 parameter
        T2 - the type parameter
        T3 - the type parameter
        T4 - the type parameter
        T5 - the type parameter
        T6 - the type parameter
        T7 - the type parameter
        R - 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 parameter
        T2 - the type parameter
        T3 - the type parameter
        T4 - the type parameter
        T5 - the type parameter
        T6 - the type parameter
        T7 - the type parameter
        T8 - the type parameter
        R - 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