Class AbstractHistoricalCollection.RemoveEvent<E,C extends Collection<E>>
java.lang.Object
org.opentrafficsim.core.perception.AbstractHistorical.EventValue<E>
org.opentrafficsim.core.perception.collections.AbstractHistoricalCollection.EventCollection<E,C>
org.opentrafficsim.core.perception.collections.AbstractHistoricalCollection.RemoveEvent<E,C>
- Type Parameters:
E- element typeC- collection type
- Enclosing class:
- AbstractHistoricalCollection<E,C extends Collection<E>>
public static class AbstractHistoricalCollection.RemoveEvent<E,C extends Collection<E>> extends AbstractHistoricalCollection.EventCollection<E,C>
Event for removing value from the collection.
Copyright (c) 2013-2019 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 1 jan. 2018
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
Constructor Summary
Constructors Constructor Description RemoveEvent(double time, E value)Constructor. -
Method Summary
Methods inherited from class org.opentrafficsim.core.perception.AbstractHistorical.EventValue
getTime, getValue
-
Constructor Details
-
RemoveEvent
Constructor.- Parameters:
time- double; time of eventvalue- E; value of event
-
-
Method Details
-
restore
Restores the collection to the state of before the event.- Specified by:
restorein classAbstractHistoricalCollection.EventCollection<E,C extends Collection<E>>- Parameters:
collection- C; collection to restore
-
toString
- Overrides:
toStringin classAbstractHistoricalCollection.EventCollection<E,C extends Collection<E>>
-