You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@batchee.apache.org by "Mark Struberg (JIRA)" <ji...@apache.org> on 2014/04/28 19:12:16 UTC
[jira] [Reopened] (BATCHEE-33) BufferedItemReader#readAllItems()
should return Iterable
[ https://issues.apache.org/jira/browse/BATCHEE-33?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mark Struberg reopened BATCHEE-33:
----------------------------------
Reopened because I think Iterable<T> is really a bit better.
You could still do .iterator() on it. Or just return a anonymous Iterable which implements your iterator...
> BufferedItemReader#readAllItems() should return Iterable<R>
> -----------------------------------------------------------
>
> Key: BATCHEE-33
> URL: https://issues.apache.org/jira/browse/BATCHEE-33
> Project: BatchEE
> Issue Type: Improvement
> Components: batchee-extensions
> Affects Versions: 0.1-incubating
> Reporter: Reinhard Sandtner
> Assignee: Mark Struberg
> Priority: Minor
> Fix For: 0.2-incubating
>
> Attachments: batchee33.patch
>
>
> make
> {code}
> public abstract Iterator<R> readAllItems();
> {code}
> return Iterable<R> would be easier to use it.
> The method should also be protected.
--
This message was sent by Atlassian JIRA
(v6.2#6252)