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

Marshall Schor edited comment on UIMA-5603 at 10/4/17 2:56 PM:
---------------------------------------------------------------

I agree it's strange.  I'll try to think of something better (more natural, 
intuitive, closer to normal Java/UIMA  thinking/behavior, etc.)


was (Author: schor):
I agree it's strange.  I'll try to think of something better.

> uv3 make FSIterator implement Iterable
> --------------------------------------
>
>                 Key: UIMA-5603
>                 URL: https://issues.apache.org/jira/browse/UIMA-5603
>             Project: UIMA
>          Issue Type: Improvement
>          Components: Core Java Framework
>    Affects Versions: 3.0.0SDK-alpha02
>            Reporter: Marshall Schor
>            Assignee: Marshall Schor
>            Priority: Trivial
>             Fix For: 3.0.0SDK-beta
>
>
> Forms like cas.getIndexRepository().getAllIndexedFSs(...) return an iterator. 
>  It would be nice to be able to use the returned result in an extended for :  
>  for (TOP x : cas.getInd... etc). Make FSIterator implement Iterable 
> (returning itself, as a default method).



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to