You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2019/11/05 12:32:00 UTC

[jira] [Work logged] (COLLECTIONS-591) Copy on write list

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

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

                Author: ASF GitHub Bot
            Created on: 05/Nov/19 12:31
            Start Date: 05/Nov/19 12:31
    Worklog Time Spent: 10m 
      Work Description: dota17 commented on pull request #109: [COLLECTIONS-591] Copy on write list
URL: https://github.com/apache/commons-collections/pull/109
 
 
   [COLLECTIONS-591] Add Copy on write list
 
----------------------------------------------------------------
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:
users@infra.apache.org


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

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

> Copy on write list
> ------------------
>
>                 Key: COLLECTIONS-591
>                 URL: https://issues.apache.org/jira/browse/COLLECTIONS-591
>             Project: Commons Collections
>          Issue Type: New Feature
>          Components: List
>            Reporter: Radosław Smogura
>            Priority: Minor
>         Attachments: copy-on-write-list-v1.diff
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Hi all,
> In one of my projects I wanted to use copy on write list. I slightly improved this implementation and thought it would be nice to add it to commons collections, as I couldn't find something like this.
> Implementation details:
> - the original list is wrapped with CopyOnWriteList,
> - on modifications the original list is copied and copy is used instead,
> - for iterators before modification, the cursor index is used and then new iterator is set on on required position (this can't be done for abstract collections)
> I hope there is no flaw in my designs,
> Best regards, 
> Radek Smogura



--
This message was sent by Atlassian Jira
(v8.3.4#803005)