K - key typeV - value typeM - map typepublic abstract class AbstractHistoricalMap<K,V,M extends Map<K,V>> extends AbstractHistorical<K,AbstractHistoricalMap.EventMap<K,V,M>> implements HistoricalMap<K,V>
Copyright (c) 2013-2018 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractHistoricalMap.EventMap<K,V,M extends Map<K,V>>
Abstract super class for events that add or remove a value from the map.
|
AbstractHistorical.EventValue<T>| Modifier | Constructor and Description |
|---|---|
protected |
AbstractHistoricalMap(HistoryManager historyManager,
M map)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Set<Map.Entry<K,V>> |
entrySet() |
protected M |
fill(M map)
Fill map with the current map.
|
protected M |
fill(Time time,
M map)
Fill map with the map at the given simulation time.
|
V |
get(Object key) |
protected M |
getMap()
Returns the internal map.
|
boolean |
isEmpty() |
Set<K> |
keySet() |
V |
put(K key,
V value) |
void |
putAll(Map<? extends K,? extends V> m) |
V |
remove(Object key) |
int |
size() |
Collection<V> |
values() |
addEvent, cleanUpHistory, getEvent, getEvents, getLastEvent, isLastState, now, removeEventclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitget, get, replaceAllcompute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replaceprotected AbstractHistoricalMap(HistoryManager historyManager, M map)
historyManager - HistoryManager; history managermap - M; initial mapprotected M getMap()
protected M fill(M map)
map - M; map to fillprotected M fill(Time time, M map)
time - Time; timemap - M; map to fillpublic boolean containsKey(Object key)
containsKey in interface Map<K,V>public boolean containsValue(Object value)
containsValue in interface Map<K,V>Copyright © 2014–2018 Delft University of Technology. All rights reserved.