Package nablarch.core.util.map
Class CaseInsensitiveMap<V>
- Type Parameters:
V- 値の型
キー文字列の大文字・小文字を同一視する
Map。
各APIのキーはString.toLowerCase()で暗黙的に変換される。- Author:
- Iwauo Tajima
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Constructor Summary
ConstructorsConstructorDescription本クラスのインスタンスを作成する。CaseInsensitiveMap(Map<String, V> baseMap) 指定されたMapをラップした、本クラスのインスタンスを作成する。 -
Method Summary
Methods inherited from class nablarch.core.util.map.MapWrapper
clear, containsValue, entrySet, equals, getDelegateMapOfType, hashCode, isEmpty, keySet, size, toString, valuesMethods inherited from class java.util.AbstractMap
cloneMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
CaseInsensitiveMap
本クラスのインスタンスを作成する。 作成するインスタンスは、ConcurrentHashMapのラップしているため、 スレッドセーフであることが保証される反面、キーにnullを設定できない点に注意すること。 -
CaseInsensitiveMap
指定されたMapをラップした、本クラスのインスタンスを作成する。- Parameters:
baseMap- 元となるMap。キーは小文字でなければならない。- Throws:
IllegalArgumentException- 元となるMapがnullの場合
-
-
Method Details
-
getDelegateMap
このラッパーが処理を委譲するMapオブジェクトを返す。- Specified by:
getDelegateMapin classMapWrapper<String,V> - Returns:
- 処理を委譲するMapオブジェクト
-
containsKey
MapWrapper.getDelegateMap()が返すMapオブジェクトに処理を委譲する。- Specified by:
containsKeyin interfaceMap<String,V> - Overrides:
containsKeyin classMapWrapper<String,V>
-
get
MapWrapper.getDelegateMap()が返すMapオブジェクトに処理を委譲する。 -
put
MapWrapper.getDelegateMap()が返すMapオブジェクトに処理を委譲する。 -
putAll
MapWrapper.getDelegateMap()が返すMapオブジェクトに処理を委譲する。 -
remove
MapWrapper.getDelegateMap()が返すMapオブジェクトに処理を委譲する。
-