All Superinterfaces:
Consumer<Long>
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 LongConsumer extends Consumer<Long>
A primitive specialization of Consumer for long.
  • Method Details

    • acceptLong

      void acceptLong(long value)
      Performs this operation on the given argument.
      Parameters:
      value - the input argument
    • accept

      @Deprecated default void accept(Long value)
      Deprecated.
      Specified by:
      accept in interface Consumer<Long>
    • andThenLong

      default LongConsumer andThenLong(LongConsumer after)
      Parameters:
      after - the operation to perform after this operation
      Returns:
      a composed LongConsumer that performs in sequence this operation followed by the after operation
    • andThen

      @Deprecated default Consumer<Long> andThen(Consumer<? super Long> after)
      Deprecated.
      Specified by:
      andThen in interface Consumer<Long>