| Package | Description |
|---|---|
| com.annimon.stream | |
| com.annimon.stream.function | |
| com.annimon.stream.operator |
| Modifier and Type | Method and Description |
|---|---|
boolean |
LongStream.allMatch(LongPredicate predicate)
Tests whether all elements match the given predicate.
|
boolean |
LongStream.anyMatch(LongPredicate predicate)
Tests whether all elements match the given predicate.
|
LongStream |
LongStream.dropWhile(LongPredicate predicate)
Drops elements while the predicate is true and returns the rest.
|
OptionalLong |
OptionalLong.filter(LongPredicate predicate)
Performs filtering on inner value if it is present.
|
LongStream |
LongStream.filter(LongPredicate predicate)
Returns
LongStream with elements that satisfy the given predicate. |
OptionalLong |
OptionalLong.filterNot(LongPredicate predicate)
Performs negated filtering on inner value if it is present.
|
LongStream |
LongStream.filterNot(LongPredicate predicate)
Returns
LongStream with elements that does not satisfy the given predicate. |
static LongStream |
LongStream.iterate(long seed,
LongPredicate predicate,
LongUnaryOperator op)
Creates an
LongStream by iterative application LongUnaryOperator function
to an initial element seed, conditioned on satisfying the supplied predicate. |
boolean |
LongStream.noneMatch(LongPredicate predicate)
Tests whether no elements match the given predicate.
|
LongStream |
LongStream.takeUntil(LongPredicate stopPredicate)
Takes elements while the predicate returns
false. |
LongStream |
LongStream.takeWhile(LongPredicate predicate)
Takes elements while the predicate returns
true. |
| Modifier and Type | Method and Description |
|---|---|
static LongPredicate |
LongPredicate.Util.and(LongPredicate p1,
LongPredicate p2)
Applies logical AND to predicates.
|
static LongPredicate |
LongPredicate.Util.negate(LongPredicate p1)
Applies logical negation to predicate.
|
static LongPredicate |
LongPredicate.Util.or(LongPredicate p1,
LongPredicate p2)
Applies logical OR to predicates.
|
static LongPredicate |
LongPredicate.Util.safe(ThrowableLongPredicate<Throwable> throwablePredicate)
Creates a safe
LongPredicate. |
static LongPredicate |
LongPredicate.Util.safe(ThrowableLongPredicate<Throwable> throwablePredicate,
boolean resultIfFailed)
Creates a safe
LongPredicate. |
static LongPredicate |
LongPredicate.Util.xor(LongPredicate p1,
LongPredicate p2)
Applies logical XOR to predicates.
|
| Modifier and Type | Method and Description |
|---|---|
static LongPredicate |
LongPredicate.Util.and(LongPredicate p1,
LongPredicate p2)
Applies logical AND to predicates.
|
static LongPredicate |
LongPredicate.Util.negate(LongPredicate p1)
Applies logical negation to predicate.
|
static LongPredicate |
LongPredicate.Util.or(LongPredicate p1,
LongPredicate p2)
Applies logical OR to predicates.
|
static LongPredicate |
LongPredicate.Util.xor(LongPredicate p1,
LongPredicate p2)
Applies logical XOR to predicates.
|
| Constructor and Description |
|---|
LongDropWhile(PrimitiveIterator.OfLong iterator,
LongPredicate predicate) |
LongFilter(PrimitiveIterator.OfLong iterator,
LongPredicate predicate) |
LongTakeUntil(PrimitiveIterator.OfLong iterator,
LongPredicate stopPredicate) |
LongTakeWhile(PrimitiveIterator.OfLong iterator,
LongPredicate predicate) |
Copyright © 2017. All rights reserved.