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

com.github.markozajc.ef.predicate.BooleanPredicate Maven / Gradle / Ivy

package com.github.markozajc.ef.predicate;

import java.util.function.Predicate;

/**
 * A variant of {@link Predicate} that takes a primitive boolean.
 *
 * @author Marko Zajc
 */
public interface BooleanPredicate {

	/**
	 * Evaluates this predicate on the given argument.
	 *
	 * @param p
	 *            the input argument
	 *
	 * @return {@code true} if the input argument matches the predicate, otherwise
	 *         {@code false}
	 */
	boolean test(boolean p);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy