public class CollectionFilter extends Object
|Constructor and Description|
|Modifier and Type||Method and Description|
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 © 2022. All rights reserved.