Class EventProducingListIterator<T>

    • Field Detail

      • OBJECT_ADDED_EVENT

        public static final EventType OBJECT_ADDED_EVENT
        OBJECT_ADDED_EVENT is fired on adding of entries.
      • OBJECT_CHANGED_EVENT

        public static final EventType OBJECT_CHANGED_EVENT
        OBJECT_CHANGED_EVENT is fired on changing of entries.
    • Constructor Detail

      • EventProducingListIterator

        public EventProducingListIterator​(ListIterator<T> parent,
                                          Serializable sourceId)
        constructs a new EventProducingListIterator, embedding the parent ListIterator.
        Parameters:
        parent - ListIterator<T>; embedded iterator.
        sourceId - Serializable; the id by which the EventProducer can be identified by the EventListener
      • EventProducingListIterator

        public EventProducingListIterator​(ListIterator<T> parent,
                                          IdProvider sourceIdProvider)
        Constructs a new EventProducingListIterator, embedding the parent iterator.
        Parameters:
        parent - ListIterator<T>; the parent set.
        sourceIdProvider - IdProvider; the function that produces the id by which the EventProducer can be identified by the EventListener