| 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.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.
|
boolean |
Stream.noneMatch(Predicate<? super T> predicate)
Tests whether no elements match the given predicate.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> Predicate<T> |
Predicate.Util.and(Predicate<? super T> p1,
Predicate<? super T> p2)
Apply logical AND to predicates.
|
static <T> Predicate<? super T> |
Predicate.Util.negate(Predicate<? super T> p1)
Apply logical negation to predicate.
|
static <T> Predicate<T> |
Predicate.Util.or(Predicate<? super T> p1,
Predicate<? super T> p2)
Apply logical OR to predicates.
|
static <T> Predicate<T> |
Predicate.Util.xor(Predicate<? super T> p1,
Predicate<? super T> p2)
Apply 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)
Apply logical AND to predicates.
|
static <T> Predicate<T> |
Predicate.Util.and(Predicate<? super T> p1,
Predicate<? super T> p2)
Apply logical AND to predicates.
|
static <T> Predicate<? super T> |
Predicate.Util.negate(Predicate<? super T> p1)
Apply logical negation to predicate.
|
static <T> Predicate<T> |
Predicate.Util.or(Predicate<? super T> p1,
Predicate<? super T> p2)
Apply logical OR to predicates.
|
static <T> Predicate<T> |
Predicate.Util.or(Predicate<? super T> p1,
Predicate<? super T> p2)
Apply logical OR to predicates.
|
static <T> Predicate<T> |
Predicate.Util.xor(Predicate<? super T> p1,
Predicate<? super T> p2)
Apply logical XOR to predicates.
|
static <T> Predicate<T> |
Predicate.Util.xor(Predicate<? super T> p1,
Predicate<? super T> p2)
Apply logical XOR to predicates.
|
Copyright © 2015. All rights reserved.