commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adrian Crum (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (COLLECTIONS-366) A light-weighted list of integers
Date Sun, 03 Mar 2013 19:27:13 GMT

    [ https://issues.apache.org/jira/browse/COLLECTIONS-366?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13591840#comment-13591840
] 

Adrian Crum commented on COLLECTIONS-366:
-----------------------------------------

Someone wanting to iterate over a Range could just create an Iterator for it.

                
> A light-weighted list of integers
> ---------------------------------
>
>                 Key: COLLECTIONS-366
>                 URL: https://issues.apache.org/jira/browse/COLLECTIONS-366
>             Project: Commons Collections
>          Issue Type: New Feature
>    Affects Versions: 3.2
>            Reporter: Dmitry Katsubo
>         Attachments: RangeList_fixed1.zip
>
>
> Sometimes there is a demand too have a list, that represents numbers within some range
(say, [5..10]). If the range is big (millions of records), creating a dummy list that holds
all instances of objects is too expensive.
> The provided implementation (attached to this issue) solves this problem. Nice to have
in commons collections.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message