commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gilles (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (MATH-1286) New "Range" class
Date Fri, 30 Oct 2015 09:49:27 GMT

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

Gilles commented on MATH-1286:
------------------------------

No, it implements the {{Iterable}} interface; so, the "range" methods in {{IntegerSequence}}
would be used exactly as now, but with the advantage that the "size" can be queried on the
returned instance (without having to iterate).

> New "Range" class
> -----------------
>
>                 Key: MATH-1286
>                 URL: https://issues.apache.org/jira/browse/MATH-1286
>             Project: Commons Math
>          Issue Type: New Feature
>            Reporter: Gilles
>            Assignee: Gilles
>            Priority: Minor
>             Fix For: 4.0
>
>         Attachments: MATH-1286.patch
>
>
> I propose to define a "Range" inner class within "IntegerSequence"
> (package "o.a.c.m.util").
> An instance of this type will be returned from the "range" methods.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message