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 void
clear()
Clears all entries in this map.(package private) CharArrayMap.EntrySet
createEntrySet()
V
put(char[] text, V val)
Add the given mapping.V
put(java.lang.CharSequence text, V val)
Add the given mapping.V
put(java.lang.Object o, V val)
V
put(java.lang.String text, V val)
Add the given mapping.V
remove(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:CharArrayMap
Clears all entries in this map. This method is supported for reusing, but notMap.remove(java.lang.Object)
.- Specified by:
clear
in interfacejava.util.Map<java.lang.Object,V>
- Overrides:
clear
in classCharArrayMap<V>
-
put
public V put(java.lang.Object o, V val)
- Specified by:
put
in interfacejava.util.Map<java.lang.Object,V>
- Overrides:
put
in classCharArrayMap<V>
-
put
public V put(char[] text, V val)
Description copied from class:CharArrayMap
Add 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:
put
in classCharArrayMap<V>
-
put
public V put(java.lang.CharSequence text, V val)
Description copied from class:CharArrayMap
Add the given mapping.- Overrides:
put
in classCharArrayMap<V>
-
put
public V put(java.lang.String text, V val)
Description copied from class:CharArrayMap
Add the given mapping.- Overrides:
put
in classCharArrayMap<V>
-
remove
public V remove(java.lang.Object key)
- Specified by:
remove
in interfacejava.util.Map<java.lang.Object,V>
- Overrides:
remove
in classCharArrayMap<V>
-
createEntrySet
CharArrayMap.EntrySet createEntrySet()
- Overrides:
createEntrySet
in classCharArrayMap<V>
-
-