commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dmitry Katsubo (JIRA)" <>
Subject [jira] [Commented] (COLLECTIONS-366) A light-weight list of integers
Date Fri, 08 Mar 2013 11:12:13 GMT


Dmitry Katsubo commented on COLLECTIONS-366:

_rejecting other numbers that do not correspond exactly to the int numbers contained in the

I agree with that. Indeed this is a list of integers, not mathematical range.
I also confirm that my initial implementation (attached to this issue) is wrong in this respect:
should read {{if (o instanceof Integer) ...}}.
P.S. Hopefully this class will be finally included in commons-collections.
> A light-weight list of integers
> -------------------------------
>                 Key: COLLECTIONS-366
>                 URL:
>             Project: Commons Collections
>          Issue Type: New Feature
>    Affects Versions: 3.2
>            Reporter: Dmitry Katsubo
>             Fix For: 4.x
>         Attachments: COLLECTIONS-366.patch,
> 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:

View raw message