public final class FilterCollection extends Object
| Modifier and Type | Method and Description |
|---|---|
static <E> Collection<E> |
filter(Collection<E> collection,
Predicate<E> predicate)
Returns the collection with the same elements like given collection but only those, which returns true for
application of given predicate.
|
public static <E> Collection<E> filter(Collection<E> collection, Predicate<E> predicate)
E - the element type of the collectioncollection - the collection of elementspredicate - the predicate to filter byCopyright © 2017 JBoss by Red Hat. All rights reserved.