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

com.github.markozajc.ef.function.BooleanFunction Maven / Gradle / Ivy

package com.github.markozajc.ef.function;

import java.util.function.Function;

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

	/**
	 * Applies this function to the given arguments.
	 *
	 * @param p
	 *            value the function argument
	 *
	 * @return the function result
	 */
	R apply(boolean p);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy