Class EventProducingCollection<T>

java.lang.Object
org.djutils.event.EventProducer
org.djutils.event.util.EventProducingCollection<T>
Type Parameters:
T - The type t od the eventproducing list.
All Implemented Interfaces:
Serializable, Iterable<T>, Collection<T>, EventListener, EventListenerInterface, EventProducerInterface

public class EventProducingCollection<T>
extends EventProducer
implements EventListenerInterface, Collection<T>
The Event producing collection provides a set to which one can subscribe interest in entry changes. This class does not keep track of changes which take place indirectly. One is for example not notified on map.iterator.remove(). A listener must subscribe to the iterator individually.

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:
Peter Jacobs , Alexander Verbraeck
See Also:
Serialized Form