Interface Functions.CheckedConsumer<T,E extends Throwable>

Type Parameters:
T - item type
E - checked exception type
Enclosing class:
Functions
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 static interface Functions.CheckedConsumer<T,E extends Throwable>
Checked consumer.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    accept(T item)
    Accept an item.
  • Method Details

    • accept

      void accept(T item) throws E
      Accept an item.
      Parameters:
      item - item
      Throws:
      E - if an error occurs