You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Gary Gregory (JIRA)" <ji...@apache.org> on 2019/07/05 15:18:00 UTC
[jira] [Closed] (COLLECTIONS-694) Support for Transformer in
LazyList
[ https://issues.apache.org/jira/browse/COLLECTIONS-694?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gary Gregory closed COLLECTIONS-694.
------------------------------------
Resolution: Fixed
Fix Version/s: 4.4
In git master.
> Support for Transformer in LazyList
> -----------------------------------
>
> Key: COLLECTIONS-694
> URL: https://issues.apache.org/jira/browse/COLLECTIONS-694
> Project: Commons Collections
> Issue Type: Improvement
> Components: List
> Affects Versions: 4.2
> Reporter: Stephan Windmüller
> Priority: Minor
> Fix For: 4.4
>
> Time Spent: 2.5h
> Remaining Estimate: 0h
>
> {{LazyList}} supports a {{Factory}} for creating new elements on first access. Since a {{Factory}} does not take any arguments, those elements can not depend on any input values.
> A possible use case is a list of objects from a database, fetched by their id. If an element at a specific position is requested, it is retrieved from the database lazily. This would require support of a {{Transformer}} (from id to database object).
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)