Interface Consumer1<T1>

All Superinterfaces:
Consumer<T1>
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 Consumer1<T1> extends Consumer<T1>
A consumer with 1 arguments.
Author:
Lukas Eder
  • Method Details

    • accept

      default void accept(Tuple1<? extends T1> args)
      Performs this operation on the given argument.
      Parameters:
      args - The arguments as a tuple.
    • accept

      void accept(T1 v1)
      Performs this operation on the given argument.
      Specified by:
      accept in interface Consumer<T1>
    • toConsumer

      default Consumer<T1> toConsumer()
      Convert this consumer to a Consumer.
    • from

      static <T1> Consumer1<T1> from(Consumer<? super T1> consumer)
      Convert to this consumer from a Consumer.
    • acceptPartially

      default Consumer0 acceptPartially(T1 v1)
      Let this consumer partially accept the arguments.
    • acceptPartially

      default Consumer0 acceptPartially(Tuple1<? extends T1> args)
      Let this consumer partially accept the arguments.