| Package | Description |
|---|---|
| com.annimon.stream | |
| com.annimon.stream.function | |
| com.annimon.stream.operator |
| Modifier and Type | Method and 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.
|
IntStream |
IntStream.dropWhile(IntPredicate predicate)
Drops elements while the predicate is true and returns the rest.
|
OptionalInt |
OptionalInt.filter(IntPredicate predicate)
Performs filtering on inner value if it is present.
|
IntStream |
IntStream.filter(IntPredicate predicate)
Returns a stream consisting of the elements of this stream that match
the given predicate.
|
OptionalInt |
OptionalInt.filterNot(IntPredicate predicate)
Performs negated filtering on inner value if it is present.
|
IntStream |
IntStream.filterNot(IntPredicate predicate)
Returns a stream consisting of the elements of this stream that don't
match the given predicate.
|
static IntStream |
IntStream.iterate(int seed,
IntPredicate predicate,
IntUnaryOperator op)
Creates an
IntStream by iterative application IntUnaryOperator function
to an initial element seed, conditioned on satisfying the supplied predicate. |
boolean |
IntStream.noneMatch(IntPredicate predicate)
Returns whether no elements of this stream match the provided predicate.
|
IntStream |
IntStream.takeUntil(IntPredicate stopPredicate)
Takes elements while the predicate returns
false. |
IntStream |
IntStream.takeWhile(IntPredicate predicate)
Takes elements while the predicate returns
true. |
| Modifier and Type | Method and Description |
|---|---|
static IntPredicate |
IntPredicate.Util.and(IntPredicate p1,
IntPredicate p2)
Applies logical AND to predicates.
|
static IntPredicate |
IntPredicate.Util.negate(IntPredicate p1)
Applies logical negation to predicate.
|
static IntPredicate |
IntPredicate.Util.or(IntPredicate p1,
IntPredicate p2)
Applies logical OR to predicates.
|
static IntPredicate |
IntPredicate.Util.safe(ThrowableIntPredicate<Throwable> throwablePredicate)
Creates a safe
IntPredicate. |
static IntPredicate |
IntPredicate.Util.safe(ThrowableIntPredicate<Throwable> throwablePredicate,
boolean resultIfFailed)
Creates a safe
IntPredicate. |
static IntPredicate |
IntPredicate.Util.xor(IntPredicate p1,
IntPredicate p2)
Applies logical XOR to predicates.
|
| Modifier and Type | Method and Description |
|---|---|
static IntPredicate |
IntPredicate.Util.and(IntPredicate p1,
IntPredicate p2)
Applies logical AND to predicates.
|
static IntPredicate |
IntPredicate.Util.negate(IntPredicate p1)
Applies logical negation to predicate.
|
static IntPredicate |
IntPredicate.Util.or(IntPredicate p1,
IntPredicate p2)
Applies logical OR to predicates.
|
static IntPredicate |
IntPredicate.Util.xor(IntPredicate p1,
IntPredicate p2)
Applies logical XOR to predicates.
|
| Constructor and Description |
|---|
IntDropWhile(PrimitiveIterator.OfInt iterator,
IntPredicate predicate) |
IntFilter(PrimitiveIterator.OfInt iterator,
IntPredicate predicate) |
IntTakeUntil(PrimitiveIterator.OfInt iterator,
IntPredicate stopPredicate) |
IntTakeWhile(PrimitiveIterator.OfInt iterator,
IntPredicate predicate) |
Copyright © 2017. All rights reserved.