Package | Description |
---|---|
java.util.function |
Functional interfaces provide target types for lambda expressions
and method references.
|
java.util.stream |
java.util.stream
|
Modifier and Type | Method and Description |
---|---|
default LongPredicate |
LongPredicate.and(LongPredicate p)
Returns a predicate which evaluates to
true only if this
predicate and the provided predicate both evaluate to true . |
default LongPredicate |
LongPredicate.negate()
Returns a predicate which negates the result of this predicate.
|
default LongPredicate |
LongPredicate.or(LongPredicate p)
Returns a predicate which evaluates to
true if either this
predicate or the provided predicate evaluates to true . |
Modifier and Type | Method and Description |
---|---|
default LongPredicate |
LongPredicate.and(LongPredicate p)
Returns a predicate which evaluates to
true only if this
predicate and the provided predicate both evaluate to true . |
default LongPredicate |
LongPredicate.or(LongPredicate p)
Returns a predicate which evaluates to
true if either this
predicate or the provided predicate evaluates to true . |
Modifier and Type | Method and Description |
---|---|
boolean |
LongStream.allMatch(LongPredicate predicate)
Returns whether all elements of this stream match the provided predicate.
|
boolean |
LongStream.anyMatch(LongPredicate predicate)
Returns whether any elements of this stream match the provided
predicate.
|
LongStream |
LongStream.filter(LongPredicate predicate)
Returns a stream consisting of the elements of this stream that match
the given predicate.
|
boolean |
LongStream.noneMatch(LongPredicate 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, 2013, Oracle and/or its affiliates. All rights reserved.
DRAFT internal-0