V
- 値の型 public class LinkedCaseInsensitiveMap<V> extends ObjectSE implements MapSE<StringSE,V>, SerializableSE, CloneableSE
LinkedHashMap
SE バリアント。元の順序とキーの元の大文字小文字を保持しながら、キーの大文字と小文字を含めて呼び出しを取得、削除できます。
null
キーをサポートしていません。
Map.EntrySE<KSE, VSE>
コンストラクターと説明 |
---|
LinkedCaseInsensitiveMap() デフォルトのロケール(デフォルトでは小文字)に従って大文字と小文字を区別しないキーを格納する新しい LinkedCaseInsensitiveMap を作成します。 |
LinkedCaseInsensitiveMap(int expectedSize) LinkedHashMap SE を初期容量でラップする新しい LinkedCaseInsensitiveMap を作成します。これは、予期される即時のサイズ変更 / 再ハッシュ操作なしで、指定された数の要素に対応でき、デフォルトのロケール(小文字)に従って大文字と小文字を区別しないキーを格納します。 |
LinkedCaseInsensitiveMap(int expectedSize, LocaleSE locale) LinkedHashMap SE を初期容量でラップする新しい LinkedCaseInsensitiveMap を作成します。これは、指定されたロケール(小文字)に従って大文字と小文字を区別しないキーを格納し、予期される即時のサイズ変更 / 再ハッシュ操作なしで、指定された数の要素に対応できます。 |
LinkedCaseInsensitiveMap(LocaleSE locale) 指定されたロケール(小文字)に従って大文字と小文字を区別しないキーを格納する新しい LinkedCaseInsensitiveMap を作成します。 |
修飾子と型 | メソッドと説明 |
---|---|
void | clear() |
LinkedCaseInsensitiveMap<V> | clone() |
V | computeIfAbsent(StringSE key, FunctionSE<? super StringSE,? extends V> mappingFunction) |
boolean | containsKey(ObjectSE key) |
boolean | containsValue(ObjectSE value) |
protected StringSE | convertKey(StringSE key) 指定されたキーを大文字と小文字を区別しないキーに変換します。 |
SetSE<Map.EntrySE<StringSE, V>> | entrySet() |
boolean | equals(ObjectSE other) |
V | get(ObjectSE key) |
LocaleSE | getLocale() この LinkedCaseInsensitiveMap が使用するロケールを返します。 |
V | getOrDefault(ObjectSE key, V defaultValue) |
int | hashCode() |
boolean | isEmpty() |
SetSE<StringSE> | keySet() |
V | put(StringSE key, V value) |
void | putAll(MapSE<? extends StringSE,? extends V> map) |
V | putIfAbsent(StringSE key, V value) |
V | remove(ObjectSE key) |
protected boolean | removeEldestEntry(Map.EntrySE<StringSE, V> eldest) このマップが指定された最も古いエントリを削除するかどうかを決定します。 |
int | size() |
StringSE | toString() |
CollectionSE<V> | values() |
finalizeSE, getClassSE, notifySE, notifyAllSE, waitSE, waitSE, waitSE
computeSE, computeIfPresentSE, forEachSE, mergeSE, removeSE, replaceSE, replaceSE, replaceAllSE
public LinkedCaseInsensitiveMap()
convertKey(String)
public LinkedCaseInsensitiveMap(@Nullable LocaleSE locale)
locale
- 大文字と小文字を区別しないキー変換に使用するロケール convertKey(String)
public LinkedCaseInsensitiveMap(int expectedSize)
LinkedHashMap
SE を初期容量でラップする新しい LinkedCaseInsensitiveMap を作成します。これは、予期される即時のサイズ変更 / 再ハッシュ操作なしで、指定された数の要素に対応でき、デフォルトのロケール(小文字)に従って大文字と小文字を区別しないキーを格納します。expectedSize
- 予想される要素数 (サイズ変更 / 再ハッシュ操作が不要になるように、対応する容量が導出されます)CollectionUtils.newHashMap(int)
, convertKey(String)
public LinkedCaseInsensitiveMap(int expectedSize, @Nullable LocaleSE locale)
LinkedHashMap
SE を初期容量でラップする新しい LinkedCaseInsensitiveMap を作成します。これは、指定されたロケール(小文字)に従って大文字と小文字を区別しないキーを格納し、予期される即時のサイズ変更 / 再ハッシュ操作なしで、指定された数の要素に対応できます。expectedSize
- 予想される要素数 (サイズ変更 / 再ハッシュ操作が不要になるように、対応する容量が導出されます)locale
- 大文字と小文字を区別しないキー変換に使用するロケール CollectionUtils.newHashMap(int)
, convertKey(String)
public boolean containsKey(ObjectSE key)
MapSE<StringSE, V>
の containsKeySE
public boolean containsValue(ObjectSE value)
MapSE<StringSE, V>
の containsValueSE
@Nullable public V getOrDefault(ObjectSE key, V defaultValue)
MapSE<StringSE, V>
の getOrDefaultSE
@Nullable public V putIfAbsent(StringSE key, @Nullable V value)
MapSE<StringSE, V>
の putIfAbsentSE
@Nullable public V computeIfAbsent(StringSE key, FunctionSE<? super StringSE,? extends V> mappingFunction)
MapSE<StringSE, V>
の computeIfAbsentSE
public SetSE<Map.EntrySE<StringSE,V>> entrySet()
MapSE<StringSE, V>
の entrySetSE
public LinkedCaseInsensitiveMap<V> clone()
public int hashCode()
MapSE<StringSE, V>
の hashCodeSE
ObjectSE
の hashCodeSE
public StringSE toString()
ObjectSE
の toStringSE
public LocaleSE getLocale()
LinkedCaseInsensitiveMap
が使用するロケールを返します。大文字と小文字を区別しないキー変換に使用されます。LinkedCaseInsensitiveMap(Locale)
, convertKey(String)
protected StringSE convertKey(StringSE key)
デフォルトの実装では、このマップのロケールに従ってキーが小文字に変換されます。
key
- ユーザー指定のキー String.toLowerCase(Locale)
SEprotected boolean removeEldestEntry(Map.EntrySE<StringSE,V> eldest)
eldest
- 候補エントリ true
、保持する場合は false
LinkedHashMap.removeEldestEntry(java.util.Map.Entry<K, V>)
SE