Package | Description |
---|---|
java.util | |
java.util.function | |
java.util.stream |
Modifier and Type | Method and Description |
---|---|
Optional<T> |
Optional.filter(Predicate<? super T> predicate) |
default boolean |
Collection.removeIf(Predicate<? super E> filter) |
boolean |
ArrayList.removeIf(Predicate<? super E> filter) |
boolean |
Vector.removeIf(Predicate<? super E> filter) |
Modifier and Type | Method and Description |
---|---|
default Predicate<T> |
Predicate.and(Predicate<? super T> other) |
static <T> Predicate<T> |
Predicate.isEqual(Object targetRef) |
default Predicate<T> |
Predicate.negate() |
default Predicate<T> |
Predicate.or(Predicate<? super T> other) |
Modifier and Type | Method and Description |
---|---|
default Predicate<T> |
Predicate.and(Predicate<? super T> other) |
default Predicate<T> |
Predicate.or(Predicate<? super T> other) |
Modifier and Type | Method and Description |
---|---|
boolean |
Stream.allMatch(Predicate<? super T> predicate) |
boolean |
Stream.anyMatch(Predicate<? super T> predicate) |
Stream<T> |
Stream.filter(Predicate<? super T> predicate) |
boolean |
Stream.noneMatch(Predicate<? super T> predicate) |
static <T> Collector<T,?,Map<Boolean,List<T>>> |
Collectors.partitioningBy(Predicate<? super T> predicate) |
static <T,D,A> Collector<T,?,Map<Boolean,D>> |
Collectors.partitioningBy(Predicate<? super T> predicate,
Collector<? super T,A,D> downstream) |
Copyright © 2018. All rights reserved.