de.team33.patterns.exceptional.dione.XConsumer Maven / Gradle / Ivy
package de.team33.patterns.exceptional.dione;
/**
* A kind of consumer that allows to throw a checked exception.
*
* @see java.util.function.Consumer
*/
@FunctionalInterface
public interface XConsumer {
/**
* Performs this operation on the given argument.
*
* @throws X if so.
* @see java.util.function.Consumer#accept(Object)
*/
void accept(T t) throws X;
}