Interface Consumer0

  • All Superinterfaces:
    java.lang.Runnable
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface Consumer0
    extends java.lang.Runnable
    A consumer with 0 arguments.
    • Method Detail

      • accept

        default void accept​(Tuple0 args)
        Performs this operation on the given argument.
        Parameters:
        args - The arguments as a tuple.
      • accept

        void accept()
        Performs this operation on the given argument.
      • run

        default void run()
        Specified by:
        run in interface java.lang.Runnable
      • toRunnable

        default java.lang.Runnable toRunnable()
        Convert this consumer to a Runnable.
      • from

        static Consumer0 from​(java.lang.Runnable runnable)
        Convert to this consumer from a Runnable.