| Package | Description |
|---|---|
| java.util |
Contains the collections framework, legacy collection classes, event model, date and time facilities, internationalization, and miscellaneous utility classes (a string tokenizer, a random-number generator, and a bit array).
|
| java.util.concurrent |
Utility classes commonly useful in concurrent programming.
|
| java.util.function |
Functional interfaces provide target types for lambda expressions and method references.
|
| java.util.regex |
Classes for matching character sequences against patterns specified by regular expressions.
|
| java.util.stream |
Classes to support functional-style operations on streams of elements, such as map-reduce transformations on collections.
|
| Modifier and Type | Method and Description |
|---|---|
Optional |
Optional.filter(Predicate
If a value is present, and the value matches the given predicate, return an
Optional describing the value, otherwise return an empty
Optional.
|
boolean |
Vector.removeIf(Predicate
|
default boolean |
Collection.removeIf(Predicate
Removes all of the elements of this collection that satisfy the given predicate.
|
boolean |
ArrayList.removeIf(Predicate
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
CopyOnWriteArraySet.removeIf(Predicate
|
boolean |
CopyOnWriteArrayList.removeIf(Predicate
|
| Modifier and Type | Method and Description |
|---|---|
default Predicate |
Predicate.and(Predicate
Returns a composed predicate that represents a short-circuiting logical AND of this predicate and another.
|
static <T> Predicate |
Predicate.isEqual(Object
Returns a predicate that tests if two arguments are equal according to
Objects.
|
default Predicate |
Predicate.negate()
Returns a predicate that represents the logical negation of this predicate.
|
default Predicate |
Predicate.or(Predicate
Returns a composed predicate that represents a short-circuiting logical OR of this predicate and another.
|
| Modifier and Type | Method and Description |
|---|---|
default Predicate |
Predicate.and(Predicate
Returns a composed predicate that represents a short-circuiting logical AND of this predicate and another.
|
default Predicate |
Predicate.or(Predicate
Returns a composed predicate that represents a short-circuiting logical OR of this predicate and another.
|
| Modifier and Type | Method and Description |
|---|---|
Predicate |
Pattern.asPredicate()
Creates a predicate which can be used to match a string.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
Stream.allMatch(Predicate
Returns whether all elements of this stream match the provided predicate.
|
boolean |
Stream.anyMatch(Predicate
Returns whether any elements of this stream match the provided predicate.
|
Stream |
Stream.filter(Predicate
Returns a stream consisting of the elements of this stream that match the given predicate.
|
boolean |
Stream.noneMatch(Predicate
Returns whether no elements of this stream match the provided predicate.
|
static <T> Collector |
Collectors.partitioningBy(Predicate
Returns a
Collector which partitions the input elements according to a
Predicate, and organizes them into a
Map<Boolean, List<T>>.
|
static <T |
Collectors.partitioningBy(Predicate
Returns a
Collector which partitions the input elements according to a
Predicate, reduces the values in each partition according to another
Collector, and organizes them into a
Map<Boolean, D> whose values are the result of the downstream reduction.
|