All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.kirekov.sneaky.lambda.CheckedConsumer Maven / Gradle / Ivy

There is a newer version: 1.1.0
Show newest version
package com.kirekov.sneaky.lambda;

import java.util.function.Consumer;

/**
 * Consumer that may throw {@linkplain Exception}.
 *
 * @param  the type of the input parameter
 * @see Consumer
 */
@FunctionalInterface
public interface CheckedConsumer {

  /**
   * Performs this operation on the given argument.
   *
   * @param t the input argument
   * @throws Exception if any error occurs
   */
  void accept(T t) throws Exception;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy