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

com.github.markozajc.ef.bipredicate.ObjShortPredicate Maven / Gradle / Ivy

package com.github.markozajc.ef.bipredicate;

import java.util.function.BiPredicate;

/**
 * A variant of {@link BiPredicate} that takes a generic type and a primitive short.
 *
 * @param 
 *            the type of the first argument to the predicate
 *
 * @author Marko Zajc
 */
public interface ObjShortPredicate {

	/**
	 * Evaluates this predicate on the given arguments.
	 *
	 * @param t
	 *            the first input argument
	 * @param p
	 *            the second ({@code short}) input argument
	 *
	 * @return {@code true} if the input arguments match the predicate, otherwise
	 *         {@code false}
	 */
	boolean test(T t, short p);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy