V
- public class LinkedStringMap<V> extends LinkedHashMap<String,V>
All keys are converted to lower case.
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
LinkedStringMap()
Default constructor.
|
LinkedStringMap(int initialCapacity)
LinkedStringMap.
|
Modifier and Type | Method and Description |
---|---|
boolean |
containsKey(String key)
containsKey.
|
V |
get(String key)
Get the value of key.
|
V |
put(String key,
V value) |
void |
putAll(Map<? extends String,? extends V> m) |
V |
putIfAbsent(String key,
V value) |
V |
remove(String key)
Remove key.
|
boolean |
remove(String key,
Object value)
Remove key.
|
V |
replace(String key,
V value) |
boolean |
replace(String key,
V oldValue,
V newValue) |
void |
replaceAll(BiFunction<? super String,? super V,? extends V> function)
This method is not supported.
|
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, values
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, remove, remove, size
equals, hashCode, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, remove, remove, size
public LinkedStringMap()
public LinkedStringMap(int initialCapacity)
initialCapacity
- initialCapacitypublic V get(String key)
key
- keyHashMap.get(java.lang.Object)
public boolean containsKey(String key)
key
- keyHashMap.containsKey(java.lang.Object)
public V remove(String key)
key
- keyHashMap.remove(java.lang.Object)
public boolean remove(String key, Object value)
key
- keyvalue
- valueHashMap.remove(java.lang.Object, java.lang.Object)
public V putIfAbsent(String key, V value)
putIfAbsent
in interface Map<String,V>
putIfAbsent
in class HashMap<String,V>
public void replaceAll(BiFunction<? super String,? super V,? extends V> function)
replaceAll
in interface Map<String,V>
replaceAll
in class LinkedHashMap<String,V>
HashMap.replaceAll(java.util.function.BiFunction)
Copyright © 2002–2019 Department of Computer Science, Warwick University. All rights reserved.