Uploaded image for project: 'Commons Collections'
  1. Commons Collections
  2. COLLECTIONS-694

Support for Transformer in LazyList

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 4.2
    • 4.4
    • List
    • None

    Description

      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).

      Attachments

        Activity

          People

            Unassigned Unassigned
            windy Stephan Windmüller
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 2.5h
                2.5h