uima-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thilo Goetz <twgo...@gmx.de>
Subject Re: [jira] Commented: (UIMA-25) Implement better support for arrays of Feature Structures
Date Thu, 07 Dec 2006 10:02:02 GMT
Greg Holmberg (JIRA) wrote:
>     [ http://issues.apache.org/jira/browse/UIMA-25?page=comments#action_12456189 ] 
>             
> Greg Holmberg commented on UIMA-25:
> -----------------------------------
> 
> This may not be exactly what Marshall is referring to, but I found it surprising that
FSArray doesn't provide or implement FSIterator.
> 
> An FSArrayIterator class would be easy to implement.  Keep an int that indexes the array.
 hasNext() checks if the index is less than the size, next() does an array.get() on the index
and increments it.  And so on.
> 
> In general, it would be nice if all the arrays, lists, iterators, etc in UIMA implemented
the standard Java Collection package interfaces.  Even better if UIMA moved to Java 5 and
parameterized its collection classes with the member type (i.e. use generics).

Hi Greg,

a large part of the industry is still on Java 1.4, and we think we can't 
drop 1.4 support just yet.

I appreciate your comments about the Java collection framework.  We've 
talked about this on and off, but it never really went anywhere.  Is 
this something we might want to support in JCas?  That would seem like a 
good place for it.

Opinions?

--Thilo


Mime
View raw message