Class EventProducingListIterator<T>

Type Parameters:
T - the type of elements to iterate on
All Implemented Interfaces:
Serializable, Iterator<T>, ListIterator<T>, EventProducerInterface

public class EventProducingListIterator<T>
extends EventProducingIterator<T>
implements ListIterator<T>
EventProducingListIterator provides an iterator embedding the ListIterator, which fires an event when an object has been removed. Note that one does not have to subscribe specifically to the events of the EventProducingListIterator, as the EventProducing collection subscribes to the EventProducingListIterator's remove events and fires these again to its subscribers.

Copyright (c) 2002-2020 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information https://djutils.org. The DJUTILS project is distributed under a three-clause BSD-style license, which can be found at https://djutils.org/docs/license.html. This class was originally part of the DSOL project, see https://simulation.tudelft.nl/dsol/manual.

Author:
Alexander Verbraeck
See Also:
Serialized Form