Interface CheckedIntConsumer<E extends Exception>

Type Parameters:
E - exception that can be thrown during accept
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 CheckedIntConsumer<E extends Exception>
Consumes an int and throws an exception.
Author:
Owen Feehan
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    accept(int in)
    Like IntConsumer.accept(int) but throws an exception.
  • Method Details

    • accept

      void accept(int in) throws E
      Like IntConsumer.accept(int) but throws an exception.
      Parameters:
      in - the argument passed into the operation.
      Throws:
      E - if the operation does not succeed.