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

com.github.markozajc.ef.bifunction.ObjBooleanFunction Maven / Gradle / Ivy

package com.github.markozajc.ef.bifunction;

import java.util.function.BiFunction;

/**
 * A {@link BiFunction} variant that takes a generic type and a primitive boolean,
 * and returns a generic type.
 *
 * @author Marko Zajc
 *
 * @param 
 *            the type of the first argument to the function
 * @param 
 *            the type of the result of the function
 */
@FunctionalInterface
public interface ObjBooleanFunction {

	/**
	 * Applies this function to the given arguments.
	 *
	 * @param t
	 *            the first function argument
	 * @param p
	 *            the second ({@code boolean}) function argument
	 *
	 * @return the function result
	 */
	R apply(T t, boolean p);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy