Interface Consumer0

All Superinterfaces:
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 Runnable
A consumer with 0 arguments.
Author:
Lukas Eder
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Performs this operation on the given argument.
    default void
    accept(Tuple0 args)
    Performs this operation on the given argument.
    static Consumer0
    from(Runnable runnable)
    Convert to this consumer from a Runnable.
    default void
    run()
     
    default Runnable
    Convert this consumer to a Runnable.
  • Method Details

    • 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 Runnable
    • toRunnable

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

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