commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <>
Subject [collections] IfClosure
Date Thu, 02 Feb 2006 19:52:28 GMT
Is there any interest in adding:

public IfClosure(Predicate predicate, Closure
trueClosure) {
    this(predicate, trueClosure, NOPClosure.INSTANCE);

public static Closure getInstance(Predicate predicate,
Closure trueClosure) {
    return getInstance(predicate, trueClosure,

+ ClosureUtils.ifClosure(Predicate, Closure


This is for convenience only... (and saving on
Collection instances).  If this would be accepted I
will submit a patch.


Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message