Package org.apache.lucene.analysis
Class CharArrayMap.UnmodifiableCharArrayMap<V>
- java.lang.Object
-
- java.util.AbstractMap<java.lang.Object,V>
-
- org.apache.lucene.analysis.CharArrayMap<V>
-
- org.apache.lucene.analysis.CharArrayMap.UnmodifiableCharArrayMap<V>
-
- All Implemented Interfaces:
java.util.Map<java.lang.Object,V>
- Direct Known Subclasses:
CharArrayMap.EmptyCharArrayMap
- Enclosing class:
- CharArrayMap<V>
static class CharArrayMap.UnmodifiableCharArrayMap<V> extends CharArrayMap<V>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.lucene.analysis.CharArrayMap
CharArrayMap.EntryIterator, CharArrayMap.EntrySet, CharArrayMap.UnmodifiableCharArrayMap<V>
-
-
Field Summary
-
Fields inherited from class org.apache.lucene.analysis.CharArrayMap
keys, values
-
-
Constructor Summary
Constructors Constructor Description UnmodifiableCharArrayMap(CharArrayMap<V> map)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()Clears all entries in this map.(package private) CharArrayMap.EntrySetcreateEntrySet()Vput(char[] text, V val)Add the given mapping.Vput(java.lang.CharSequence text, V val)Add the given mapping.Vput(java.lang.Object o, V val)Vput(java.lang.String text, V val)Add the given mapping.Vremove(java.lang.Object key)-
Methods inherited from class org.apache.lucene.analysis.CharArrayMap
containsKey, containsKey, containsKey, copy, emptyMap, entrySet, get, get, get, keySet, originalKeySet, size, toString, unmodifiableMap
-
Methods inherited from class java.util.AbstractMap
clone, containsValue, equals, hashCode, isEmpty, putAll, values
-
-
-
-
Constructor Detail
-
UnmodifiableCharArrayMap
UnmodifiableCharArrayMap(CharArrayMap<V> map)
-
-
Method Detail
-
clear
public void clear()
Description copied from class:CharArrayMapClears all entries in this map. This method is supported for reusing, but notMap.remove(java.lang.Object).- Specified by:
clearin interfacejava.util.Map<java.lang.Object,V>- Overrides:
clearin classCharArrayMap<V>
-
put
public V put(java.lang.Object o, V val)
- Specified by:
putin interfacejava.util.Map<java.lang.Object,V>- Overrides:
putin classCharArrayMap<V>
-
put
public V put(char[] text, V val)
Description copied from class:CharArrayMapAdd the given mapping. If ignoreCase is true for this Set, the text array will be directly modified. The user should never modify this text array after calling this method.- Overrides:
putin classCharArrayMap<V>
-
put
public V put(java.lang.CharSequence text, V val)
Description copied from class:CharArrayMapAdd the given mapping.- Overrides:
putin classCharArrayMap<V>
-
put
public V put(java.lang.String text, V val)
Description copied from class:CharArrayMapAdd the given mapping.- Overrides:
putin classCharArrayMap<V>
-
remove
public V remove(java.lang.Object key)
- Specified by:
removein interfacejava.util.Map<java.lang.Object,V>- Overrides:
removein classCharArrayMap<V>
-
createEntrySet
CharArrayMap.EntrySet createEntrySet()
- Overrides:
createEntrySetin classCharArrayMap<V>
-
-