commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <gudnabr...@yahoo.com>
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,
NOPClosure.INSTANCE);
}

+ ClosureUtils.ifClosure(Predicate, Closure
trueClosure);

?

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

Thanks,
Matt

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message