Interface CheckedDoubleConsumer<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 CheckedDoubleConsumer<E extends Throwable>
A double-value consumer that can throw checked exceptions.
Since:
1.14
  • Method Summary

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

    • accept

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

      default CheckedDoubleConsumer<E> andThen(CheckedDoubleConsumer<E> that)
      Returns a new CheckedDoubleConsumer that also passes the input to that. For example: out::writeDouble.andThen(logger::logDouble).accept(123D).