Module life.expert

Interface PrintUtils


  • public interface PrintUtils
    • Method Summary

      Static Methods 
      Modifier and Type Method Description
      static void print()
      Log at info.
      static void print​(java.lang.String message)
      Log at info.
      static void print​(java.lang.String format, java.lang.Object... arguments)
      Print.
      static <E,​F>
      java.util.function.BiConsumer<E,​F>
      printBiConsumer()
      Log at info consumer consumer.
      static <E,​F>
      java.util.function.BiConsumer<E,​F>
      printBiConsumer​(java.lang.String message)
      Log at info consumer consumer.
      static <E,​F>
      java.util.function.BiConsumer<E,​F>
      printBiConsumerWrapper​(java.util.function.BiConsumer<E,​F> consumer)
      Log at info consumer.
      static <T,​U,​R>
      java.util.function.BiFunction<T,​U,​R>
      printBiFunction​(java.lang.String message, R returnObject)
      Log at info function function.
      static <T,​U,​R>
      java.util.function.BiFunction<T,​U,​R>
      printBiFunction​(R returnObject)
      Log at info function function.
      static <T,​U,​R>
      java.util.function.BiFunction<T,​U,​R>
      printBiFunctionWrapper​(java.util.function.BiFunction<T,​U,​R> function)
      Log at info function proxy function.
      static <E> java.util.function.Consumer<E> printConsumer()
      Log at info consumer consumer.
      static <E> java.util.function.Consumer<E> printConsumer​(java.lang.String message)
      Log at info consumer consumer.
      static <E> java.util.function.Consumer<E> printConsumerWrapper​(java.util.function.Consumer<E> consumer)
      Log at info consumer.
      static <T,​R>
      java.util.function.Function<T,​R>
      printFunction​(java.lang.String message, R returnObject)
      Log at info function function.
      static <T,​R>
      java.util.function.Function<T,​R>
      printFunction​(R returnObject)
      Log at info function function.
      static <T,​R>
      java.util.function.Function<T,​R>
      printFunctionWrapper​(java.util.function.Function<T,​R> function)
      Log at info function proxy function.
      static <E> java.lang.Runnable printRunnable()
      Log at info runnable action.
      static <E> java.lang.Runnable printRunnable​(java.lang.String message)
      Log at info runnable action.
      static <E> java.lang.Runnable printRunnableWrapper​(java.lang.Runnable runnable)
      Log at info runnable proxy action.
      static <E> java.util.function.Supplier<E> printSupplier​(E returnObject)
      Log at info supplier callable.
      static <E> java.util.function.Supplier<E> printSupplier​(java.lang.String message, E returnObject)
      Log at info supplier callable.
      static <E> java.util.function.Supplier<E> printSupplierWrapper​(java.util.function.Supplier<E> supplier)
      Log at info supplier proxy callable.
      static <E> java.util.function.UnaryOperator<E> printUnaryOperator()
      Log at info unary operator function.
      static <E> java.util.function.UnaryOperator<E> printUnaryOperator​(java.lang.String message)
      Log at info unary operator function.
    • Method Detail

      • print

        static void print​(java.lang.String format,
                          java.lang.Object... arguments)
        Print.
            print     ("Hi {}.", "there")
          print ("Set {1,2,3} is not equal to {}.", "1,2");
          
        Parameters:
        format - the format
        arguments - the arguments
      • printConsumer

        static <E> java.util.function.Consumer<E> printConsumer​(java.lang.String message)
        Log at info consumer consumer.
        Type Parameters:
        E - the type parameter
        Parameters:
        message - the message
        Returns:
        the consumer
      • printConsumer

        static <E> java.util.function.Consumer<E> printConsumer()
        Log at info consumer consumer.
        Type Parameters:
        E - the type parameter
        Returns:
        the consumer
      • printBiConsumer

        static <E,​F> java.util.function.BiConsumer<E,​F> printBiConsumer​(java.lang.String message)
        Log at info consumer consumer.
        Type Parameters:
        E - the type parameter
        F - the type parameter
        Parameters:
        message - the message
        Returns:
        the consumer
      • printBiConsumer

        static <E,​F> java.util.function.BiConsumer<E,​F> printBiConsumer()
        Log at info consumer consumer.
        Type Parameters:
        E - the type parameter
        F - the type parameter
        Returns:
        the consumer
      • printFunction

        static <T,​R> java.util.function.Function<T,​R> printFunction​(java.lang.String message,
                                                                                R returnObject)
        Log at info function function.
        Type Parameters:
        T - the type parameter
        R - the type parameter
        Parameters:
        message - the message
        returnObject - the return object
        Returns:
        the function
      • printFunction

        static <T,​R> java.util.function.Function<T,​R> printFunction​(R returnObject)
        Log at info function function.
        Type Parameters:
        T - the type parameter
        R - the type parameter
        Parameters:
        returnObject - the return object
        Returns:
        the function
      • printBiFunction

        static <T,​U,​R> java.util.function.BiFunction<T,​U,​R> printBiFunction​(java.lang.String message,
                                                                                                    R returnObject)
        Log at info function function.
        Type Parameters:
        T - the type parameter
        U - the type parameter
        R - the type parameter
        Parameters:
        message - the message
        returnObject - the return object
        Returns:
        the function
      • printBiFunction

        static <T,​U,​R> java.util.function.BiFunction<T,​U,​R> printBiFunction​(R returnObject)
        Log at info function function.
        Type Parameters:
        T - the type parameter
        U - the type parameter
        R - the type parameter
        Parameters:
        returnObject - the return object
        Returns:
        the function
      • printUnaryOperator

        static <E> java.util.function.UnaryOperator<E> printUnaryOperator​(java.lang.String message)
        Log at info unary operator function.
        Type Parameters:
        E - the type parameter
        Parameters:
        message - the message
        Returns:
        the function
      • printUnaryOperator

        static <E> java.util.function.UnaryOperator<E> printUnaryOperator()
        Log at info unary operator function.
        Type Parameters:
        E - the type parameter
        Returns:
        the function
      • printSupplier

        static <E> java.util.function.Supplier<E> printSupplier​(java.lang.String message,
                                                                E returnObject)
        Log at info supplier callable.
        Type Parameters:
        E - the type parameter
        Parameters:
        message - the message
        returnObject - the return object
        Returns:
        the callable
      • printSupplier

        static <E> java.util.function.Supplier<E> printSupplier​(E returnObject)
        Log at info supplier callable.
        Type Parameters:
        E - the type parameter
        Parameters:
        returnObject - the return object
        Returns:
        the callable
      • printRunnable

        static <E> java.lang.Runnable printRunnable​(java.lang.String message)
        Log at info runnable action.
        Type Parameters:
        E - the type parameter
        Parameters:
        message - the message
        Returns:
        the action
      • printRunnable

        static <E> java.lang.Runnable printRunnable()
        Log at info runnable action.
        Type Parameters:
        E - the type parameter
        Returns:
        the action
      • print

        static void print​(java.lang.String message)
        Log at info.
        Parameters:
        message - the message
      • print

        static void print()
        Log at info.
      • printConsumerWrapper

        static <E> java.util.function.Consumer<E> printConsumerWrapper​(java.util.function.Consumer<E> consumer)
        Log at info consumer.
        Type Parameters:
        E - the type parameter
        Parameters:
        consumer - the consumer
        Returns:
        the consumer
      • printBiConsumerWrapper

        static <E,​F> java.util.function.BiConsumer<E,​F> printBiConsumerWrapper​(java.util.function.BiConsumer<E,​F> consumer)
        Log at info consumer.
        Type Parameters:
        E - the type parameter
        F - the type parameter
        Parameters:
        consumer - the consumer
        Returns:
        the consumer
      • printFunctionWrapper

        static <T,​R> java.util.function.Function<T,​R> printFunctionWrapper​(java.util.function.Function<T,​R> function)
        Log at info function proxy function.
        Type Parameters:
        T - the type parameter
        R - the type parameter
        Parameters:
        function - the function
        Returns:
        the function
      • printBiFunctionWrapper

        static <T,​U,​R> java.util.function.BiFunction<T,​U,​R> printBiFunctionWrapper​(java.util.function.BiFunction<T,​U,​R> function)
        Log at info function proxy function.
        Type Parameters:
        T - the type parameter
        U - the type parameter
        R - the type parameter
        Parameters:
        function - the function
        Returns:
        the function
      • printSupplierWrapper

        static <E> java.util.function.Supplier<E> printSupplierWrapper​(java.util.function.Supplier<E> supplier)
        Log at info supplier proxy callable.
        Type Parameters:
        E - the type parameter
        Parameters:
        supplier - the supplier
        Returns:
        the callable
      • printRunnableWrapper

        static <E> java.lang.Runnable printRunnableWrapper​(java.lang.Runnable runnable)
        Log at info runnable proxy action.
        Type Parameters:
        E - the type parameter
        Parameters:
        runnable - the runnable
        Returns:
        the action