commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Radford Tam (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (COLLECTIONS-471) Add a BoundedIterator which returns at most limit elements
Date Thu, 28 Nov 2013 17:02:35 GMT

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

Radford Tam commented on COLLECTIONS-471:
-----------------------------------------

Is there some advantages to having those factory methods? The class has public constructors.
And I see that mostly it's the EmptyIterators and the UnmodifiableIterators that have them,
which make sense for them because of how they function.

To be honest, after reviewing the code, it seems the factory methods are unnecessary, like
the getIterator method.

> Add a BoundedIterator which returns at most limit elements
> ----------------------------------------------------------
>
>                 Key: COLLECTIONS-471
>                 URL: https://issues.apache.org/jira/browse/COLLECTIONS-471
>             Project: Commons Collections
>          Issue Type: New Feature
>            Reporter: Thomas Neidhart
>             Fix For: 4.0.1
>
>         Attachments: BoundedIterator.java, BoundedIteratorTest.java
>
>
> It would be nice to have a decorator which bounds the number of elements returned by
the decorated iterator.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message