## Uses of Interface
java.util.function.BiPredicate

- Packages that use BiPredicate
  Package | Description
  --- | ---
  java.nio.file | Defines interfaces and classes for the Java virtual machine to access files, file attributes, and file systems.
  java.util.function | Functional interfaces provide target types for lambda expressions and method references.

- - ### Uses of BiPredicate in java.nio.file

    Methods in java.nio.file with parameters of type BiPredicate
    Modifier and Type | Method | Description
    --- | --- | ---
    `static Stream<Path>` | Files.`find(Path start, int maxDepth, BiPredicate<Path,BasicFileAttributes> matcher, FileVisitOption... options)` Return a `Stream` that is lazily populated with `Path` by searching for files in a file tree rooted at a given starting file.

  - ### Uses of BiPredicate in java.util.function

    Methods in java.util.function that return BiPredicate
    Modifier and Type | Method | Description
    --- | --- | ---
    `default BiPredicate<T,U>` | BiPredicate.`and(BiPredicate<? super T,? super U> other)` Returns a composed predicate that represents a short-circuiting logical AND of this predicate and another.
    `default BiPredicate<T,U>` | BiPredicate.`negate()` Returns a predicate that represents the logical negation of this predicate.
    `default BiPredicate<T,U>` | BiPredicate.`or(BiPredicate<? super T,? super U> other)` Returns a composed predicate that represents a short-circuiting logical OR of this predicate and another.

    Methods in java.util.function with parameters of type BiPredicate
    Modifier and Type | Method | Description
    --- | --- | ---
    `default BiPredicate<T,U>` | BiPredicate.`and(BiPredicate<? super T,? super U> other)` Returns a composed predicate that represents a short-circuiting logical AND of this predicate and another.
    `default BiPredicate<T,U>` | BiPredicate.`or(BiPredicate<? super T,? super U> other)` Returns a composed predicate that represents a short-circuiting logical OR of this predicate and another.

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.