Interface CheckedLongConsumer<E extends Throwable>

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 CheckedLongConsumer<E extends Throwable>
A 64-bit long consumer that can throw checked exceptions.
Since:
1.14
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    accept(long input)
     
    Returns a new CheckedLongConsumer that also passes the input to that.
  • Method Details

    • accept

      void accept(long input) throws E
      Throws:
      E
    • andThen

      default CheckedLongConsumer<E> andThen(CheckedLongConsumer<E> that)
      Returns a new CheckedLongConsumer that also passes the input to that. For example: out::writeLong.andThen(logger::logLong).accept(123L).