Class AbstractPerceptionReiterable.PerceptionIterator

  • All Implemented Interfaces:
    java.util.Iterator<H>
    Enclosing class:
    AbstractPerceptionReiterable<H extends Headway,​U>

    public class AbstractPerceptionReiterable.PerceptionIterator
    extends java.lang.Object
    implements java.util.Iterator<H>
    This iterator is returned to callers of the iterator() method. Multiple instances may be returned which use the same linked list of SecondaryIteratorEntry. Whenever an iterator runs to the end of this list, the primary iterator is requested to find the next object, if it has a next object.

    Copyright (c) 2013-2020 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
    BSD-style license. See OpenTrafficSim License.

    Version:
    $Revision$, $LastChangedDate$, by $Author$, initial version 16 feb. 2018
    Author:
    Alexander Verbraeck, Peter Knoppers, Wouter Schakel
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasNext()
      H next()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Iterator

        forEachRemaining, remove
    • Method Detail

      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface java.util.Iterator<H extends Headway>
      • next

        public H next()
        Specified by:
        next in interface java.util.Iterator<H extends Headway>