Uses of Interface java.util.function.DoublePredicate (Java Platform SE 8 )
Date: 2026-04-17

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

- Packages that use DoublePredicate
  Package | Description
  --- | ---
  java.util.function | Functional interfaces provide target types for lambda expressions and method references.
  java.util.stream | Classes to support functional-style operations on streams of elements, such as map-reduce transformations on collections.

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

    Methods in java.util.function that return DoublePredicate
    Modifier and Type | Method and Description
    --- | ---
    `default DoublePredicate` | DoublePredicate.`and(DoublePredicate other)` Returns a composed predicate that represents a short-circuiting logical AND of this predicate and another.
    `default DoublePredicate` | DoublePredicate.`negate()` Returns a predicate that represents the logical negation of this predicate.
    `default DoublePredicate` | DoublePredicate.`or(DoublePredicate 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 DoublePredicate
    Modifier and Type | Method and Description
    --- | ---
    `default DoublePredicate` | DoublePredicate.`and(DoublePredicate other)` Returns a composed predicate that represents a short-circuiting logical AND of this predicate and another.
    `default DoublePredicate` | DoublePredicate.`or(DoublePredicate other)` Returns a composed predicate that represents a short-circuiting logical OR of this predicate and another.

  - ### Uses of DoublePredicate in java.util.stream

    Methods in java.util.stream with parameters of type DoublePredicate
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | DoubleStream.`allMatch(DoublePredicate predicate)` Returns whether all elements of this stream match the provided predicate.
    `boolean` | DoubleStream.`anyMatch(DoublePredicate predicate)` Returns whether any elements of this stream match the provided predicate.
    `DoubleStream` | DoubleStream.`filter(DoublePredicate predicate)` Returns a stream consisting of the elements of this stream that match the given predicate.
    `boolean` | DoubleStream.`noneMatch(DoublePredicate predicate)` Returns whether no elements of this stream match the provided predicate.

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.