K
- the key type of content of this MapV
- the value type of content of this Mappublic class ImmutableHashMap<K,V> extends ImmutableAbstractMap<K,V>
Copyright (c) 2013-2016 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
Constructor and Description |
---|
ImmutableHashMap(ImmutableHashMap<? extends K,? extends V> immutableMap) |
ImmutableHashMap(Map<? extends K,? extends V> map) |
Modifier and Type | Method and Description |
---|---|
protected HashMap<K,V> |
getMap()
Prepare the map of the right type for use a subclass.
|
ImmutableSet<K> |
keySet()
Returns a
Set view of the keys contained in this map. |
Map<K,V> |
toMap()
Returns a modifiable copy of this immutable list.
|
String |
toString() |
containsKey, containsValue, equals, get, hashCode, isEmpty, size, values
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
forEach, getOrDefault
public ImmutableHashMap(Map<? extends K,? extends V> map)
map
- the set to use as the immutable set.public ImmutableHashMap(ImmutableHashMap<? extends K,? extends V> immutableMap)
immutableMap
- the set to use as the immutable set.protected final HashMap<K,V> getMap()
@Override protected HashMap<E> getMap() { return (HashMap<E>) super.getMap(); }
getMap
in class ImmutableAbstractMap<K,V>
public final Map<K,V> toMap()
public final ImmutableSet<K> keySet()
Set
view of the keys contained in this map.public final String toString()
toString
in class ImmutableAbstractMap<K,V>
Copyright © 2014–2016 Delft University of Technology. All rights reserved.