Home | History | Annotate | Download | only in base

Lines Matching defs:predicate

239    * Creates a function that returns the same boolean output as the given predicate for all inputs.
242 * Function#apply}) if and only if {@code predicate} is itself consistent with equals.
244 public static <T> Function<T, Boolean> forPredicate(Predicate<T> predicate) {
245 return new PredicateFunction<T>(predicate);
250 private final Predicate<T> predicate;
252 private PredicateFunction(Predicate<T> predicate) {
253 this.predicate = checkNotNull(predicate);
258 return predicate.apply(t);
264 return predicate.equals(that.predicate);
270 return predicate.hashCode();
274 return "forPredicate(" + predicate + ")";