Interface Consumer1<T1>

  • All Superinterfaces:
    java.util.function.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 java.util.function.Consumer<T1>
    A consumer with 1 arguments.
    • Method Detail

      • 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 java.util.function.Consumer<T1>
      • toConsumer

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

        static <T1> Consumer1<T1> from​(java.util.function.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.