CaseInsensitiveMap<T> Class
- java.
lang. Object - java.
util. AbstractMap - java.
util. HashMap - com.
microsoft. semantickernel. contextvariables. CaseInsensitiveMap<T>
- com.
- java.
- java.
Type Parameters
- T
the type of the value
public class CaseInsensitiveMap<T>
extends java.util.HashMap<java.lang.String,T>
A java.util.HashMap
in which the keys are case-insensitive.
Constructor Summary
Constructor | Description |
---|---|
CaseInsensitiveMap() |
Creates a new instance of the CaseInsensitiveMap<T> class. |
CaseInsensitiveMap(Map<String,T> kvMap) |
Creates a new instance of the CaseInsensitiveMap<T> class. |
Method Summary
Methods inherited from java.lang.Object
Methods inherited from java.util.AbstractMap
Methods inherited from java.util.HashMap
Constructor Details
CaseInsensitiveMap
public CaseInsensitiveMap()
Creates a new instance of the CaseInsensitiveMap<T> class.
CaseInsensitiveMap
public CaseInsensitiveMap(Map
Creates a new instance of the CaseInsensitiveMap<T> class.
Parameters:
Method Details
compute
public T compute(String key, BiFunction remappingFunction)
Overrides:
CaseInsensitiveMap<T>.compute(String key, BiFunction<? super String,? super T,? extends T> remappingFunction)Parameters:
computeIfAbsent
public T computeIfAbsent(String key, Function mappingFunction)
Overrides:
CaseInsensitiveMap<T>.computeIfAbsent(String key, Function<? super String,? extends T> mappingFunction)Parameters:
computeIfPresent
public T computeIfPresent(String key, BiFunction remappingFunction)
Overrides:
CaseInsensitiveMap<T>.computeIfPresent(String key, BiFunction<? super String,? super T,? extends T> remappingFunction)Parameters:
containsKey
public boolean containsKey(Object key)
Overrides:
CaseInsensitiveMap<T>.containsKey(Object key)Parameters:
get
public T get(Object key)
Overrides:
CaseInsensitiveMap<T>.get(Object key)Parameters:
getOrDefault
public T getOrDefault(Object key, T defaultValue)
Overrides:
CaseInsensitiveMap<T>.getOrDefault(Object key, T defaultValue)Parameters:
merge
public T merge(String key, T value, BiFunction remappingFunction)
Overrides:
CaseInsensitiveMap<T>.merge(String key, T value, BiFunction<? super T,? super T,? extends T> remappingFunction)Parameters:
put
public T put(String key, T value)
Overrides:
CaseInsensitiveMap<T>.put(String key, T value)Parameters:
putAll
public void putAll(Map m)
Overrides:
CaseInsensitiveMap<T>.putAll(Map<? extends String,? extends T> m)Parameters:
putIfAbsent
public T putIfAbsent(String key, T value)
Overrides:
CaseInsensitiveMap<T>.putIfAbsent(String key, T value)Parameters:
remove
public T remove(Object key)
Overrides:
CaseInsensitiveMap<T>.remove(Object key)Parameters:
remove
public boolean remove(Object key, Object value)
Overrides:
CaseInsensitiveMap<T>.remove(Object key, Object value)Parameters:
replace
public T replace(String key, T value)
Overrides:
CaseInsensitiveMap<T>.replace(String key, T value)Parameters:
replace
public boolean replace(String key, T oldValue, T newValue)
Overrides:
CaseInsensitiveMap<T>.replace(String key, T oldValue, T newValue)Parameters: