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.
|
Modifier and Type | Method | Description |
---|---|---|
default IntPredicate |
IntPredicate.and(IntPredicate other) |
Returns a composed predicate that represents a short-circuiting logical
AND of this predicate and another.
|
default IntPredicate |
IntPredicate.negate() |
Returns a predicate that represents the logical negation of this
predicate.
|
default IntPredicate |
IntPredicate.or(IntPredicate other) |
Returns a composed predicate that represents a short-circuiting logical
OR of this predicate and another.
|
Modifier and Type | Method | Description |
---|---|---|
default IntPredicate |
IntPredicate.and(IntPredicate other) |
Returns a composed predicate that represents a short-circuiting logical
AND of this predicate and another.
|
default IntPredicate |
IntPredicate.or(IntPredicate other) |
Returns a composed predicate that represents a short-circuiting logical
OR of this predicate and another.
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
IntStream.allMatch(IntPredicate predicate) |
Returns whether all elements of this stream match the provided predicate.
|
boolean |
IntStream.anyMatch(IntPredicate predicate) |
Returns whether any elements of this stream match the provided
predicate.
|
default IntStream |
IntStream.dropWhile(IntPredicate predicate) |
Returns, if this stream is ordered, a stream consisting of the remaining
elements of this stream after dropping the longest prefix of elements
that match the given predicate.
|
IntStream |
IntStream.filter(IntPredicate predicate) |
Returns a stream consisting of the elements of this stream that match
the given predicate.
|
static IntStream |
IntStream.iterate(int seed,
IntPredicate hasNext,
IntUnaryOperator next) |
Returns a sequential ordered
IntStream produced by iterative
application of the given next function to an initial element,
conditioned on satisfying the given hasNext predicate. |
boolean |
IntStream.noneMatch(IntPredicate predicate) |
Returns whether no elements of this stream match the provided predicate.
|
default IntStream |
IntStream.takeWhile(IntPredicate predicate) |
Returns, if this stream is ordered, a stream consisting of the longest
prefix of elements taken from this stream that match the given 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, 2017, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.
DRAFT 9-Ubuntu+0-9b158-1