Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 98323 invoked from network); 20 Apr 2006 16:01:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 20 Apr 2006 16:01:32 -0000 Received: (qmail 18038 invoked by uid 500); 20 Apr 2006 16:01:27 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 17669 invoked by uid 500); 20 Apr 2006 16:01:26 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 17657 invoked by uid 99); 20 Apr 2006 16:01:26 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Apr 2006 09:01:26 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of usingh@io-content.com designates 207.142.128.121 as permitted sender) Received: from [207.142.128.121] (HELO ns27.webmasters.com) (207.142.128.121) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 20 Apr 2006 09:01:23 -0700 Received: (qmail 24478 invoked from network); 20 Apr 2006 15:56:27 -0000 Received: from unknown (HELO [192.168.38.163]) (usingh@io-content.com@81.138.107.161) by ns27.webmasters.com with SMTP; Thu, 20 Apr 2006 11:56:27 -0400 Message-ID: <4447B03D.1050606@io-content.com> Date: Thu, 20 Apr 2006 17:01:01 +0100 From: Umesh Singh User-Agent: Thunderbird 1.5 (X11/20060313) MIME-Version: 1.0 To: commons-user@jakarta.apache.org Subject: Using Predicate on this Problem Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi, I am new to using Predicate and other commons classes. Here is my problem: I have a class RetailItem which contains a Set for WholeSaleItem. This WholeSaleItem contains a boolean isPackage which tells if this is a single package or not. The WholeSaleItem contains a Set for DeliveryItems. DeliveryItem contains DeliveryMachanism Now I want to do some execution based on isPackage and DeliveryMechanism. I can simply write the for loops for iterating the sets but wondering if this is possible to do it in a simple way using Collections? Any help is welcome. Regards, Umesh --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org