Class AbstractHistoricalMap.EventMap<K,V,M extends Map<K,V>>
- java.lang.Object
-
- org.opentrafficsim.core.perception.AbstractHistorical.EventValue<K>
-
- org.opentrafficsim.core.perception.collections.AbstractHistoricalMap.EventMap<K,V,M>
-
- Type Parameters:
K
- key typeV
- value typeM
- map type
- All Implemented Interfaces:
AbstractHistorical.Event
public static class AbstractHistoricalMap.EventMap<K,V,M extends Map<K,V>> extends AbstractHistorical.EventValue<K>
Abstract super class for events that add or remove a value from the map.Copyright (c) 2013-2022 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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
restore(M map)
Restores the map to the state of before the event.String
toString()
-
Methods inherited from class org.opentrafficsim.core.perception.AbstractHistorical.EventValue
getTime, getValue
-
-
-
-
Method Detail
-
restore
public void restore(M map)
Restores the map to the state of before the event.- Parameters:
map
- M; map to restore
-
toString
public String toString()
- Overrides:
toString
in classAbstractHistorical.EventValue<K>
-
-