[ 
https://issues.apache.org/jira/browse/COLLECTIONS-800?focusedWorklogId=681651&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-681651
 ]

ASF GitHub Bot logged work on COLLECTIONS-800:
----------------------------------------------

                Author: ASF GitHub Bot
            Created on: 15/Nov/21 18:15
            Start Date: 15/Nov/21 18:15
    Worklog Time Spent: 10m 
      Work Description: coveralls commented on pull request #265:
URL: 
https://github.com/apache/commons-collections/pull/265#issuecomment-969185293


   
   [![Coverage 
Status](https://coveralls.io/builds/44274451/badge)](https://coveralls.io/builds/44274451)
   
   Coverage increased (+0.002%) to 90.139% when pulling 
**4557a452168daff3020f477e7b395af86070b37e on 
ClaudioConsolmagno:COLLECTIONS-800-partition-balanced** into 
**7ab4e4fe994ed51da0a3aed39ce2500c49a50195 on apache:master**.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 681651)
    Time Spent: 0.5h  (was: 20m)

> Provide a ListUtils.partitionBalanced(List, int) method where returned 
> sublists are "balanced"
> ----------------------------------------------------------------------------------------------
>
>                 Key: COLLECTIONS-800
>                 URL: https://issues.apache.org/jira/browse/COLLECTIONS-800
>             Project: Commons Collections
>          Issue Type: New Feature
>          Components: List
>            Reporter: Claudio
>            Priority: Minor
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> [https://github.com/apache/commons-collections/pull/265]
> The new method re-uses some of the logic of the existing 
> ListUtils.partition(List, int). The difference with that method is that the 
> returned sublists are "balanced" so that they all have the same amount of 
> elements (with a maximum of 1 element difference). Some examples:
> A list of 10 elements, partition 10:
>  * partition() and partitionBalanced() both return a single sublist with 10 
> elements
> A list of 11 elements, partition 10:
>  * partition() returns a sublist of 10 and another sublist of 1 element
>  * partitionBalanced() method returns a sublist of 6 and another sublist of 5 
> elements
> A list of 14 elements, partition 10:
>  * partition() returns a sublist of 10 and another sublist of 4 elements
>  * partitionBalanced() method returns two sublists of 7 elements each
> A list of 20 elements, partition 10:
>  * partition() and partitionBalanced() both return two sublists of 10 elements
>  



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to