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> wrappedIterator)
        constructs a new EventProducingIterator, embedding the parent Iterator.
        Parameters:
        wrappedIterator - Iterator<T>; parent.
    • 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>
      • getWrappedIterator

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