001// SPDX-License-Identifier: GPL-3.0-or-later
002
003package es.uvigo.esei.sing.textproc.abstracttppstep;
004
005import java.util.function.BiConsumer;
006
007import es.uvigo.esei.sing.textproc.step.ProcessingException;
008
009/**
010 * A consumer of data to be processed, which can throw a checked
011 * {@link ProcessingException}.
012 *
013 * @author Alejandro González García
014 *
015 * @param <T> The type of the first input argument.
016 * @param <U> The type of the second input argument.
017 * @see BiConsumer
018 */
019@FunctionalInterface
020public interface ProcessingBiConsumer<T, U> {
021        /**
022         * Performs the processing operation on the given arguments.
023         *
024         * @param t The first input argument.
025         * @param u The second input argument.
026         */
027        public void accept(final T t, final U u) throws ProcessingException;
028}