org.wamblee.collections
Class CollectionFilter
java.lang.Object
org.wamblee.collections.CollectionFilter
public class CollectionFilter
- extends Object
Collection filter for filtering collections based on a certain condition.
- Author:
- Erik Brakkee
|
Method Summary |
static
|
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CollectionFilter
public CollectionFilter()
filter
public 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.
- Type Parameters:
T - Type of contained element.- Parameters:
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 © 2011. All Rights Reserved.