Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6FF2391C0 for ; Wed, 29 Feb 2012 04:18:50 +0000 (UTC) Received: (qmail 39912 invoked by uid 500); 29 Feb 2012 04:18:49 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 39798 invoked by uid 500); 29 Feb 2012 04:18:48 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 39755 invoked by uid 99); 29 Feb 2012 04:18:47 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Feb 2012 04:18:47 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Feb 2012 04:18:45 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 9979E54D37 for ; Wed, 29 Feb 2012 04:18:25 +0000 (UTC) Date: Wed, 29 Feb 2012 04:18:25 +0000 (UTC) From: "Chris Shayan (Updated) (JIRA)" To: issues@commons.apache.org Message-ID: <279398053.1366.1330489105684.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1118494734.1361.1330488985205.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (COLLECTIONS-393) Split / Partition a collection into smaller collections MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/COLLECTIONS-393?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Chris Shayan updated COLLECTIONS-393: ------------------------------------- Attachment: Partition.java > Split / Partition a collection into smaller collections > ------------------------------------------------------- > > Key: COLLECTIONS-393 > URL: https://issues.apache.org/jira/browse/COLLECTIONS-393 > Project: Commons Collections > Issue Type: New Feature > Components: Collection > Reporter: Chris Shayan > Attachments: Partition.java > > Original Estimate: 24h > Remaining Estimate: 24h > > Returns consecutive sublists of a list, each of the same size (the final list may be smaller). For example, partitioning a list containing [a, b, c, d, e] with a partition size of 3 yields [[a, b, c], [d, e]] -- an outer list containing two inner lists of three and two elements, all in the original order. > The outer list is unmodifiable, but reflects the latest state of the source list. The inner lists are sublist views of the original list, produced on demand using List.subList(int, int), and are subject to all the usual caveats about modification as explained in that API. Adapted from http://code.google.com/p/google-collections/ > Inspired by Lars Vogel -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira