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

org.codefilarete.tool.function.SerializableTriConsumer Maven / Gradle / Ivy

package org.codefilarete.tool.function;

import java.io.Serializable;
import java.util.Objects;

/**
 * @author Guillaume Mary
 */
@FunctionalInterface
public interface SerializableTriConsumer extends Serializable {
	
	/**
	 * Performs this operation on the given arguments.
	 *
	 * @param t the first input argument
	 * @param u the second input argument
	 */
	void accept(T t, U u, V v);
	
	default SerializableTriConsumer andThen(SerializableTriConsumer after) {
		Objects.requireNonNull(after);

		return (l, r, u) -> {
			accept(l, r, u);
			after.accept(l, r, u);
		};
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy