org.objectweb.jac.util
Class Predicate
java.lang.Object
|
+--org.objectweb.jac.util.Predicate
- Direct Known Subclasses:
- NotInCollectionPredicate
- public abstract class Predicate
- extends Object
A Predicate class.
- Author:
- Laurent Martelli
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Predicate
public Predicate()
apply
public abstract boolean apply(Object object)
filter
public void filter(Collection in,
Collection out)
- Keeps only the items matching the predicate from a collection
- Parameters:
in
- filter items from that collectionout
- matching items are added to this collection