Return-Path: Delivered-To: apmail-commons-user-archive@www.apache.org Received: (qmail 82023 invoked from network); 1 Dec 2009 15:58:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 1 Dec 2009 15:58:30 -0000 Received: (qmail 19534 invoked by uid 500); 1 Dec 2009 15:58:29 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 19400 invoked by uid 500); 1 Dec 2009 15:58:28 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 19390 invoked by uid 99); 1 Dec 2009 15:58:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Dec 2009 15:58:28 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [74.125.92.144] (HELO qw-out-1920.google.com) (74.125.92.144) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Dec 2009 15:58:26 +0000 Received: by qw-out-1920.google.com with SMTP id 14so818830qwa.60 for ; Tue, 01 Dec 2009 07:58:05 -0800 (PST) MIME-Version: 1.0 Sender: jcarman@carmanconsulting.com Received: by 10.229.119.170 with SMTP id z42mr844611qcq.35.1259683085130; Tue, 01 Dec 2009 07:58:05 -0800 (PST) In-Reply-To: References: <4B148F62.6070205@burntmail.com> <4B149DCD.4000805@burntmail.com> From: James Carman Date: Tue, 1 Dec 2009 10:57:45 -0500 X-Google-Sender-Auth: 497865fef871d620 Message-ID: Subject: Re: Determine if an object is in a list To: Commons Users List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I was looking for that. It used to be in collections I believe. On Tue, Dec 1, 2009 at 10:43 AM, Brent Worden wrot= e: > On Mon, Nov 30, 2009 at 10:38 PM, Guy Rouillier = wrote: >> James Carman wrote: >>> >>> It's not that hard to create your own predicate that does what you >>> want. =A0We did that for our project. =A0Here are the two classes we us= e >>> (the first one is a useful superclass for property value-based >>> predicates): >> >> James, thank you. =A0This is indeed what I was looking for. =A0Mind if I= include >> your classes with a feature request? (with attribution, of course.) =A0I= think >> this is basic functionality that should be included with Commons >> Collections. >> > > I think commons-beanutils has the predicate you need. > > http://commons.apache.org/beanutils/v1.8.2/apidocs/org/apache/commons/bea= nutils/BeanPropertyValueEqualsPredicate.html > > Brent > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@commons.apache.org > For additional commands, e-mail: user-help@commons.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@commons.apache.org For additional commands, e-mail: user-help@commons.apache.org