Class EventProducingIterator<T>

    • Field Detail

      • OBJECT_REMOVED_EVENT

        public static final EventType OBJECT_REMOVED_EVENT
        OBJECT_REMOVED_EVENT is fired on removal of entries.
    • Constructor Detail

      • EventProducingIterator

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

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

      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface Iterator<T>
      • next

        public T next()
        Specified by:
        next in interface Iterator<T>
      • remove

        public void remove()
        Specified by:
        remove in interface Iterator<T>
      • getParent

        protected Iterator<T> getParent()
        Return the embedded iterator.
        Returns:
        parent Iterator<T>; the embedded iterator