[dna-issues] [JBoss JIRA] Closed: (DNA-196) Add methods to ValueFactory that takes Iterator<?> and returns Iterator<T>
Randall Hauch (JIRA)
jira-events at lists.jboss.org
Thu Aug 7 12:18:49 EDT 2008
[ https://jira.jboss.org/jira/browse/DNA-196?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Randall Hauch closed DNA-196.
-----------------------------
Resolution: Done
Added a single "create(Iterator<?> values):Iterator<T>" to the ValueFactory interface, and added implementation methods to all concrete classes. The AbstractValueFactory class defines a ConvertingIterator<T> that wraps an Iterator<?> and simply calls "create(Object):T" on the value factory that is using it. Thus, this method is actually quite efficient, since the only cost is the wrapped iterator instance.
> Add methods to ValueFactory that takes Iterator<?> and returns Iterator<T>
> --------------------------------------------------------------------------
>
> Key: DNA-196
> URL: https://jira.jboss.org/jira/browse/DNA-196
> Project: DNA
> Issue Type: Task
> Components: SPI
> Affects Versions: 0.2
> Reporter: Randall Hauch
> Assignee: Randall Hauch
> Fix For: 0.2
>
>
> Since Property.getValues() returns Iterator<?>, ValueFactory should have methods that accept that Iterator<?> and returns an Iterator<T>. This would make it easier to use the factory to get the value(s) out of a Property in the type that you want (without having to cast and with proper conversion if required).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the dna-issues
mailing list