You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Benedikt Ritter (JIRA)" <ji...@apache.org> on 2013/03/07 19:18:14 UTC

[jira] [Commented] (COLLECTIONS-366) A light-weight list of integers

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

Benedikt Ritter commented on COLLECTIONS-366:
---------------------------------------------

I still don't know if it is intended that with this implementation 1.2d will be contained in [0,1] because we compare against Number.intValue(). See my comments on the ML (http://markmail.org/message/ich5m4t3rtpgubvv).
                
> A light-weight 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
>             Fix For: 4.x
>
>         Attachments: COLLECTIONS-366.patch, 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