You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2018/09/09 09:56:00 UTC
[jira] [Commented] (COLLECTIONS-694) Support for Transformer in
LazyList
[ https://issues.apache.org/jira/browse/COLLECTIONS-694?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16608402#comment-16608402 ]
ASF GitHub Bot commented on COLLECTIONS-694:
--------------------------------------------
GitHub user stovocor opened a pull request:
https://github.com/apache/commons-collections/pull/52
[COLLECTIONS-694] Support Transformer for LazyList
This change adds support for `Transformer` in the `LazyList` class.
Some test cases have been added since I could not find any tests for `LazyList`. However, the class does not seem to be serializable as stated in the Javadoc.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/stovocor/commons-collections COLLECTIONS-694
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/commons-collections/pull/52.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #52
----
commit 757a4519d17fadb30f8e9e4f93530ef3cce509c3
Author: Stephan Windmüller <wi...@...>
Date: 2018-09-09T09:52:06Z
[COLLECTIONS-694] Support Transformer for LazyList
----
> 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
>
> {{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)