public class CaseInsensitiveKeysMapAccess
extends java.lang.Object
If there is a conflicting key, any one of the keys and any one of the values is used. Because of the nature of Hashmaps, the result is not deterministic.
Constructor and Description |
---|
CaseInsensitiveKeysMapAccess() |
Modifier and Type | Method and Description |
---|---|
static java.util.Map<java.lang.String,java.lang.String> |
convert(java.util.Map<java.lang.String,java.lang.String> map)
Wrapper around the map that allows accessing the map with case-insensitive keys.
|
public static java.util.Map<java.lang.String,java.lang.String> convert(java.util.Map<java.lang.String,java.lang.String> map)
Return an unmodifiable map to make it clear that changes are not reflected to the original map.
map
- the map to convertCopyright © 2012–2022 The Apache Software Foundation. All rights reserved.