public final class AnyPredicate extends Object implements Predicable
AnyPredicate is a composite of a list of Predicables. Upon evaluation, True will only be returned
if one or more of the decorated Predicables evaluate to True.
Evaluates an object and returns True if one or more of the pre-supplied conditions are met
param
obj An object
return
True if all conditions are met
final Iterator iter = predicableList.iterator();
for(int i = 0; i < predicableList.size(); i++)
{
if(((Predicable)iter.next()).evaluate(obj))
return true;
}
return false;