Lines Matching refs:predicate
228 * Creates a function that returns the same boolean output as the given predicate for all inputs.
231 * Function#apply}) if and only if {@code predicate} is itself consistent with equals.
233 public static <T> Function<T, Boolean> forPredicate(Predicate<T> predicate) {
234 return new PredicateFunction<T>(predicate);
239 private final Predicate<T> predicate;
241 private PredicateFunction(Predicate<T> predicate) {
242 this.predicate = checkNotNull(predicate);
247 return predicate.apply(t);
253 return predicate.equals(that.predicate);
259 return predicate.hashCode();
263 return "forPredicate(" + predicate + ")";