Class EventIteratorAdapter

    • Constructor Detail

      • EventIteratorAdapter

        public EventIteratorAdapter​(EventIterator iterator)
        Creates an adapter for the given RangeIterator.
        Parameters:
        iterator - iterator of Events
      • EventIteratorAdapter

        public EventIteratorAdapter​(RangeIterator iterator)
        Creates an adapter for the given RangeIterator.
        Parameters:
        iterator - iterator of Events
      • EventIteratorAdapter

        public EventIteratorAdapter​(java.util.Iterator iterator)
        Creates an adapter for the given Iterator.
        Parameters:
        iterator - iterator of Events.
      • EventIteratorAdapter

        public EventIteratorAdapter​(java.util.Collection collection)
        Creates an iterator for the given collection.
        Parameters:
        collection - collection of Events
    • Method Detail

      • nextEvent

        public Event nextEvent()
                        throws java.util.NoSuchElementException
        Returns the next event.
        Specified by:
        nextEvent in interface EventIterator
        Returns:
        next event
        Throws:
        java.util.NoSuchElementException - if there is no next event