[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jakarta-commons-dev
Subject:    [jira] [Commented] (COLLECTIONS-366) A light-weighted list of integers
From:       "Thomas Neidhart (JIRA)" <jira () apache ! org>
Date:       2013-02-28 21:43:13
Message-ID: JIRA.12478920.1288725016215.360934.1362087793075 () arcas
[Download RAW message or body]


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

Thomas Neidhart commented on COLLECTIONS-366:
---------------------------------------------

I think this is a pretty nice addition, also to simplify loops:

{noformat}
 for (int idx : new RangeList(1, 100)) {
    ....
 }
{noformat}
                
> 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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic