Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 54352 invoked from network); 9 Feb 2005 21:44:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 9 Feb 2005 21:44:47 -0000 Received: (qmail 27031 invoked by uid 500); 9 Feb 2005 21:44:43 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 26852 invoked by uid 500); 9 Feb 2005 21:44:42 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: 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 26838 invoked by uid 99); 9 Feb 2005 21:44:42 -0000 X-ASF-Spam-Status: No, hits=1.8 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_POST X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from smtp810.mail.ukl.yahoo.com (HELO smtp810.mail.ukl.yahoo.com) (217.12.12.200) by apache.org (qpsmtpd/0.28) with SMTP; Wed, 09 Feb 2005 13:44:41 -0800 Received: from unknown (HELO SCOLEBOURNE) (commons-user@jakarta.apache.org@81.154.207.147 with poptime) by smtp810.mail.ukl.yahoo.com with SMTP; 9 Feb 2005 21:44:37 -0000 Message-ID: <001301c50ef0$93a8cba0$93cf9a51@SCOLEBOURNE> From: "Stephen Colebourne" To: "Jakarta Commons Users List" References: <1107978214.420a67e674da7@webmail.clueless.be> Subject: Re: count/delete/contains elements of collection using iterator, Date: Wed, 9 Feb 2005 21:44:47 -0000 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-Antivirus: avast! (VPS 0506-0, 08/02/2005), Outbound message X-Antivirus-Status: Clean X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N [collections] generally deals with iterators by asking you to convert them to a collection, for which we provide a method. Have a scan of CollectionUtils to see if that helps. Stephen ----- Original Message ----- From: "Peter Billen" > I was wondering if there are functions to count in a collection using the > iterator, checking if an element is contained in a collection using the > iterator, deleting etc. I know these are simple while-loops, but I was > wondering if they were already avaiable in the library. I couldn't find > anything in the API docs. > > thanks, > > -- > Peter > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: commons-user-help@jakarta.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org