commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jaka...@reider.net
Subject Re: [collections] predicate algebra
Date Tue, 07 Jun 2005 17:13:41 GMT
On 6/7/05, jakarta*reider.net*jakarta*reider.net*7C0*qhvc*3@reply.e4ward.com
<jakarta*reider.net*jakarta*reider.net*7C0*qhvc*3@reply.e4ward.com>
wrote:
> // untested
> public boolean and(p2) {
>    return new Predicate(){
>       public boolean evaluate(Object input){
>          return this.evaluate(input) && p2.evaluate(input);}}}

oops that of course should have been

public Predicate and(p2) {.....

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


Mime
View raw message