Package | Description |
---|---|
java8.util.function |
Functional interfaces provide target types for lambda expressions
and method references.
|
java8.util.stream |
Classes to support functional-style operations on streams of elements, such
as map-reduce transformations on collections.
|
Modifier and Type | Method and Description |
---|---|
static DoublePredicate |
DoublePredicates.and(DoublePredicate this_,
DoublePredicate other)
Returns a composed predicate that represents a short-circuiting logical
AND of the
this_ predicate and another. |
static DoublePredicate |
DoublePredicates.negate(DoublePredicate this_)
Returns a predicate that represents the logical negation of the
this_
predicate. |
static DoublePredicate |
DoublePredicates.or(DoublePredicate this_,
DoublePredicate other)
Returns a composed predicate that represents a short-circuiting logical
OR of the
this_ predicate and another. |
Modifier and Type | Method and Description |
---|---|
static DoublePredicate |
DoublePredicates.and(DoublePredicate this_,
DoublePredicate other)
Returns a composed predicate that represents a short-circuiting logical
AND of the
this_ predicate and another. |
static DoublePredicate |
DoublePredicates.negate(DoublePredicate this_)
Returns a predicate that represents the logical negation of the
this_
predicate. |
static DoublePredicate |
DoublePredicates.or(DoublePredicate this_,
DoublePredicate other)
Returns a composed predicate that represents a short-circuiting logical
OR of the
this_ predicate and another. |
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.dropWhile(DoublePredicate 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.
|
static DoubleStream |
DoubleStreams.dropWhile(DoubleStream stream,
DoublePredicate predicate)
Returns a stream consisting of the remaining elements of the passed
stream after discarding elements that match the given predicate up to,
but not discarding, the first element encountered that does not match the
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.
|
DoubleStream |
DoubleStream.takeWhile(DoublePredicate 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.
|
static DoubleStream |
DoubleStreams.takeWhile(DoubleStream stream,
DoublePredicate predicate)
Returns a stream consisting of elements of the passed stream that match
the given predicate up to, but discarding, the first element encountered
that does not match the predicate.
|
Copyright © 2016. All rights reserved.