public class CollectionFilter extends Object
| Constructor and Description |
|---|
CollectionFilter() |
| Modifier and Type | Method and Description |
|---|---|
static <T> void |
filter(Collection<T> aFrom,
Collection<T> aTo,
Condition<T> aCondition)
Filters a collection by adding all elements in the from collection that
satisfy a given condition to the to collection.
|
public static <T> void filter(Collection<T> aFrom, Collection<T> aTo, Condition<T> aCondition)
T - Type of contained element.aFrom - From container to which the condition is applied.aTo - To container to which matching elements are added.aCondition - Condition by which elements are matched.Copyright © 2025. All rights reserved.