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

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;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy