Class CaseInsensitiveMap

java.lang.Object
java.util.AbstractMap<String,Object>
org.apache.camel.util.CaseInsensitiveMap
All Implemented Interfaces:
Serializable, Map<String,Object>

public class CaseInsensitiveMap extends AbstractMap<String,Object> implements Serializable
A map that uses case insensitive keys, but preserves the original key cases.

The map uses a custom hash table with case-insensitive hashing and comparison, providing O(1) for get, put, containsKey and remove operations without allocating temporary strings. Entries are stored in insertion order.

This map is not designed to be thread safe as concurrent access to it is not supposed to be performed by the Camel routing engine.

See Also: