commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (Jira)" <>
Subject [jira] [Work logged] (COLLECTIONS-674) Add Collections Drain Method
Date Fri, 01 Nov 2019 15:37:00 GMT


ASF GitHub Bot logged work on COLLECTIONS-674:

                Author: ASF GitHub Bot
            Created on: 01/Nov/19 15:36
            Start Date: 01/Nov/19 15:36
    Worklog Time Spent: 10m 
      Work Description: garydgregory commented on pull request #91: [COLLECTIONS-674] Add
drain method to CollectionUtils
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.
For queries about this service, please contact Infrastructure at:

Issue Time Tracking

            Worklog Id:     (was: 337378)
    Remaining Estimate: 0h
            Time Spent: 10m

> Add Collections Drain Method
> ----------------------------
>                 Key: COLLECTIONS-674
>                 URL:
>             Project: Commons Collections
>          Issue Type: Improvement
>          Components: Collection
>    Affects Versions: 4.1
>            Reporter: David Mollitor
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
> Add a {{Collections.drain()}} method which removes the first N elements from the collection
and returns them.  This method would have the side-effect of modifying the input collections
(due to removal).
> {code:java}
> // Some suggestions
> void Collections.drain(Collection<T> from, Collection<T> to, int count);
> Collection<t> Collections.drain(Collection<t> from, int count);{code}

This message was sent by Atlassian Jira

View raw message