com.annimon.stream.function.Predicate Maven / Gradle / Ivy
package com.annimon.stream.function;
/**
* Represents a predicate (function with boolean type result).
*
* @param the type of the input to the function
*/
@FunctionalInterface
public interface Predicate {
/**
* Tests the value for satisfying predicate.
*
* @param value the value to be tests
* @return {@code true} if the value matches the predicate, otherwise {@code false}
*/
boolean test(T value);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy