Chapter 4. TransformedList and UniqueList

Table of Contents

ListEvents and ListEventAssembler
TransformedList and ListEvents
Eliminating duplicates with UniqueList
So What?

In part four of this tutorial, you will derive a list of users from your issues EventList. Once you have a list of users, you can use that to filter the main issues list.

ListEvents and ListEventAssembler

ListEvents are sophisticated objects, providing fine-grained details on each insert, update and delete to your EventList. To simplify the process, ListEventAssembler manages ListEvents and ListEventListeners for you. It provides natural methods addInsert(index), addUpdate(index) and addDelete(index) which map to List.add(), set() and remove(). To group multiple changes into a single ListEvent, there's beginEvent() and commitEvent(). For your convenience, you can fire an event identical to that which was received using forwardEvent().