Returns a stateful <code>BiPredicate</code> which should not be used in parallel stream.

@param predicate
@return
@deprecated replaced by {@code BiPredicates#indexed(IndexedBiPredicate)}.
515160
@Deprecated
    static <U, T> BiPredicate<U, T> indexed(final IndexedBiPredicate<U, T> predicate) {
        return BiPredicates.indexed(predicate);
    }
1158481
public static <T> Function<T, Boolean> forPredicate (final Predicate<T> predicate)
    {
        return new Function<T, Boolean>() {
            public Boolean apply (T arg) {
                return predicate.apply(arg);
            }
        };
    }
1124302
@NotNull
    public OptionalDouble filter(@NotNull DoublePredicate predicate) {
        if (!isPresent()) return this;
        return predicate.test(value) ? this : OptionalDouble.empty();
    }
516459
@SequentialOnly
    public static <T> Predicate<T> indexed(final IndexedPredicate<T> predicate) {
        return Predicates.indexed(predicate);
    }
450573
public static <T> Predicate<T> predicate(CheckedPredicate<T> predicate) {
        return Unchecked.predicate(predicate, Unchecked.RETHROW_ALL);
    }
623322
@Nonnull
	public static <T1, T2> BiPredicate<T1, T2> biPredicateFrom(Consumer<BiPredicateBuilder<T1, T2>> buildingFunction) {
		BiPredicateBuilder builder = new BiPredicateBuilder();
		buildingFunction.accept(builder);
		return builder.build();
	}
512720
public AutoscalePolicyFilter where(Predicate<AutoscalePolicyMetadata> predicate) {
        checkNotNull(predicate, "Predicate must be not a null");

        this.predicate = this.predicate.and(predicate);

        return this;
    }
307756
public static <T> ActionPredicate<T> fromPredicate(final Predicate<T> predicate) {
	return new ActionPredicate<T>() {
	    public boolean actionPredicate(T obj) {
		return predicate.check(obj);
	    }
	};
    }
586372
public static double[] selectByPredicate (double[] values, boolean[] predicate) {
        // Define the filtered list:
        List<Double> filtered = new ArrayList<>();

        // Iterate and populate:
        for (int i = 0; i < predicate.length; i++) {
            if (predicate[i]) {
                filtered.add(values[i]);
            }
        }

        // Save the value:
        return ArrayUtils.toPrimitive(filtered.toArray(new Double[filtered.size()]));
    }
1168972
@SuppressWarnings("unchecked")
  public S handleIf(BiPredicate<R, ? extends Throwable> resultPredicate) {
    Assert.notNull(resultPredicate, "resultPredicate");
    failuresChecked = true;
    failureConditions.add((BiPredicate<R, Throwable>) resultPredicate);
    return (S) this;
  }
778573
@Nonnull
	public static LBiCharPredicate biCharPredicateFrom(Consumer<LBiCharPredicateBuilder> buildingFunction) {
		LBiCharPredicateBuilder builder = new LBiCharPredicateBuilder();
		buildingFunction.accept(builder);
		return builder.build();
	}
1001967
public boolean is(VectorPredicate predicate) {
        boolean result = true;
        VectorIterator it = iterator();

        while (it.hasNext()) {
            double x = it.next();
            int i = it.index();
            result = result && predicate.test(i, x);
        }

        return result;
    }
24069
@SafeVarargs
    public static <T, U, R> BiFunction<T, U, R> firstMatch(BinaryClause<T, U, R>... clauses) {
        final List<Clause<Pair<T, U>, R>> unaryClauses = Sequences.of(clauses).map(BinaryClause::tupled).toList();
        return Pairs.untupled(new FirstMatchStrategy<>(unaryClauses));
    }
1073638
public Choice<T> condition(final Predicate<? super T> predicate) {
    checkNotNull(predicate);
    final Choice<T> thisChoice = this;
    return new Choice<T>() {
      @Override
      protected Iterator<T> iterator() {
        return Iterators.filter(thisChoice.iterator(), predicate);
      }

      @Override
      public String toString() {
        return String.format("%s.condition(%s)", thisChoice, predicate);
      }
    };
  }
1340180
@Nonnull
	public static LBiFltPredicate biFltPredicateFrom(Consumer<LBiFltPredicateBuilder> buildingFunction) {
		LBiFltPredicateBuilder builder = new LBiFltPredicateBuilder();
		buildingFunction.accept(builder);
		return builder.build();
	}
858906
@CheckReturnValue
    public FluentGenerator<T> filter(@Nonnull Predicate<T> predicate) {
        return from(new FilteringGenerator<>(delegate, checkNotNull(predicate)));
    }
1118619
public static <T1, T2> BiPredicate<T1, T2> or(BiPredicate<T1, T2> first, BiPredicate<T1, T2> second, BiPredicate<T1, T2> third) {
        dbc.precondition(first != null, "first predicate is null");
        dbc.precondition(second != null, "second predicate is null");
        dbc.precondition(third != null, "third predicate is null");
        return Logic.Binary.or(Iterations.iterable(first, second, third));
    }