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

- Packages that use Predicate
  Package | Description
  --- | ---
  java.util |
  java.util.function |

- - ### Uses of Predicate in java.util

    Methods in java.util with parameters of type Predicate
    Modifier and Type | Method and Description
    --- | ---
    `default boolean` | Collection.`removeIf(Predicate<? super E> filter)` Removes all of the elements of this collection that satisfy the given predicate.

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

    Methods in java.util.function that return Predicate
    Modifier and Type | Method and Description
    --- | ---
    `default Predicate<T>` | Predicate.`and(Predicate<? super T> other)` Returns a composed predicate that represents a short-circuiting logical AND of this predicate and another.
    `static <T> Predicate<T>` | Predicate.`isEqual(Object targetRef)` Returns a predicate that tests if two arguments are equal according to `Objects#equals(Object, Object)`.
    `default Predicate<T>` | Predicate.`negate()` Returns a predicate that represents the logical negation of this predicate.
    `default Predicate<T>` | Predicate.`or(Predicate<? super T> 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 Predicate
    Modifier and Type | Method and Description
    --- | ---
    `default Predicate<T>` | Predicate.`and(Predicate<? super T> other)` Returns a composed predicate that represents a short-circuiting logical AND of this predicate and another.
    `default Predicate<T>` | Predicate.`or(Predicate<? super T> other)` Returns a composed predicate that represents a short-circuiting logical OR of this predicate and another.

Copyright © 2025 API Design. All Rights Reserved.