com.github.markozajc.ef.predicate.ShortPredicate Maven / Gradle / Ivy
package com.github.markozajc.ef.predicate;
import java.util.function.Predicate;
/**
* A variant of {@link Predicate} that takes a primitive short.
*
* @author Marko Zajc
*/
public interface ShortPredicate {
/**
* 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(short p);
}