K
- key typeV
- value typepublic class HistoricalEnumMap<K extends Enum<K>,V> extends AbstractHistoricalMap<K,V,EnumMap<K,V>>
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.
AbstractHistoricalMap.EventMap<K,V,M extends Map<K,V>>
AbstractHistorical.EventValue<T>
Constructor and Description |
---|
HistoricalEnumMap(HistoryManager historyManager,
Class<K> clazz)
Constructor.
|
HistoricalEnumMap(HistoryManager historyManager,
EnumMap<K,? extends V> m,
Class<K> clazz)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
EnumMap<K,V> |
get()
Returns the current map.
|
EnumMap<K,V> |
get(Time time)
Returns a past map.
|
String |
toString() |
clear, containsKey, containsValue, entrySet, fill, fill, get, getMap, isEmpty, keySet, put, putAll, remove, size, values
addEvent, cleanUpHistory, getEvent, getEvents, getLastEvent, isLastState, now, removeEvent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
replaceAll
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace
public HistoricalEnumMap(HistoryManager historyManager, Class<K> clazz)
historyManager
- HistoryManager; history managerclazz
- Class<K>; enum classCopyright © 2014–2019 Delft University of Technology. All rights reserved.