| Package | Description |
|---|---|
| com.annimon.stream | |
| com.annimon.stream.function |
| Modifier and Type | Method and Description |
|---|---|
boolean |
Stream.allMatch(Predicate<? super T> predicate)
Tests whether all elements match the given predicate.
|
boolean |
Stream.anyMatch(Predicate<? super T> predicate)
Tests whether any elements match the given predicate.
|
Stream<T> |
Stream.dropWhile(Predicate<? super T> predicate)
Drops elements while the predicate is true and returns the rest.
|
Stream<T> |
Stream.filter(Predicate<? super T> predicate)
Returns
Stream with elements that satisfy the given predicate. |
Optional<T> |
Optional.filter(Predicate<? super T> predicate)
Performs filtering on inner value if present.
|
static <T,A,R> Collector<T,?,R> |
Collectors.filtering(Predicate<? super T> predicate,
Collector<? super T,A,R> downstream)
Returns a
Collector that filters input elements. |
Stream<T> |
Stream.filterNot(Predicate<? super T> predicate)
Returns
Stream with elements that does not satisfy the given predicate. |
static <T> Stream<T> |
Stream.iterate(T seed,
Predicate<? super T> predicate,
UnaryOperator<T> op)
Creates a
Stream by iterative application UnaryOperator function
to an initial element seed, conditioned on satisfying the supplied predicate. |
boolean |
Stream.noneMatch(Predicate<? super T> predicate)
Tests whether no elements match the given predicate.
|
Stream<T> |
Stream.takeWhile(Predicate<? super T> predicate)
Takes elements while the predicate is true.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> Predicate<T> |
Predicate.Util.and(Predicate<? super T> p1,
Predicate<? super T> p2)
Applies logical AND to predicates.
|
static <T> Predicate<T> |
Predicate.Util.negate(Predicate<? super T> p1)
Applies logical negation to predicate.
|
static <T> Predicate<T> |
Predicate.Util.or(Predicate<? super T> p1,
Predicate<? super T> p2)
Applies logical OR to predicates.
|
static <T> Predicate<T> |
Predicate.Util.safe(ThrowablePredicate<? super T,Throwable> throwablePredicate)
Creates a safe
Predicate. |
static <T> Predicate<T> |
Predicate.Util.safe(ThrowablePredicate<? super T,Throwable> throwablePredicate,
boolean resultIfFailed)
Creates a safe
Predicate. |
static <T> Predicate<T> |
Predicate.Util.xor(Predicate<? super T> p1,
Predicate<? super T> p2)
Applies logical XOR to predicates.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> Predicate<T> |
Predicate.Util.and(Predicate<? super T> p1,
Predicate<? super T> p2)
Applies logical AND to predicates.
|
static <T> Predicate<T> |
Predicate.Util.and(Predicate<? super T> p1,
Predicate<? super T> p2)
Applies logical AND to predicates.
|
static <T> Predicate<T> |
Predicate.Util.negate(Predicate<? super T> p1)
Applies logical negation to predicate.
|
static <T> Predicate<T> |
Predicate.Util.or(Predicate<? super T> p1,
Predicate<? super T> p2)
Applies logical OR to predicates.
|
static <T> Predicate<T> |
Predicate.Util.or(Predicate<? super T> p1,
Predicate<? super T> p2)
Applies logical OR to predicates.
|
static <T> Predicate<T> |
Predicate.Util.xor(Predicate<? super T> p1,
Predicate<? super T> p2)
Applies logical XOR to predicates.
|
static <T> Predicate<T> |
Predicate.Util.xor(Predicate<? super T> p1,
Predicate<? super T> p2)
Applies logical XOR to predicates.
|
Copyright © 2017. All rights reserved.