Module org.apache.lucene.core
Package org.apache.lucene.analysis
Class CharArrayMap.EmptyCharArrayMap<V>
java.lang.Object
java.util.AbstractMap<Object,V>
org.apache.lucene.analysis.CharArrayMap<V>
org.apache.lucene.analysis.CharArrayMap.UnmodifiableCharArrayMap<V>
org.apache.lucene.analysis.CharArrayMap.EmptyCharArrayMap<V>
- Enclosing class:
CharArrayMap<V>
private static final class CharArrayMap.EmptyCharArrayMap<V>
extends CharArrayMap.UnmodifiableCharArrayMap<V>
Empty
CharArrayMap.UnmodifiableCharArrayMap optimized for
speed. Contains checks will always return false or throw NPE if necessary.-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.lucene.analysis.CharArrayMap
CharArrayMap.EntryIterator, CharArrayMap.EntrySet, CharArrayMap.UnmodifiableCharArrayMap<V>Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Field Summary
Fields inherited from class org.apache.lucene.analysis.CharArrayMap
keys, values -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsKey(char[] text, int off, int len) booleantrue if theCharSequenceis in theCharArrayMap.keySet()booleanget(char[] text, int off, int len) returns the value of the mapping oflenchars oftextstarting atoffget(CharSequence cs) returns the value of the mapping of the chars inside thisCharSequenceMethods inherited from class org.apache.lucene.analysis.CharArrayMap.UnmodifiableCharArrayMap
clear, createEntrySet, put, put, put, put, removeMethods inherited from class org.apache.lucene.analysis.CharArrayMap
copy, emptyMap, entrySet, keySet, originalKeySet, size, toString, unmodifiableMapMethods inherited from class java.util.AbstractMap
clone, containsValue, equals, hashCode, isEmpty, putAll, valuesMethods 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
-
EmptyCharArrayMap
EmptyCharArrayMap()
-
-
Method Details
-
containsKey
public boolean containsKey(char[] text, int off, int len) Description copied from class:CharArrayMap- Overrides:
containsKeyin classCharArrayMap<V>
-
containsKey
Description copied from class:CharArrayMaptrue if theCharSequenceis in theCharArrayMap.keySet()- Overrides:
containsKeyin classCharArrayMap<V>
-
containsKey
- Specified by:
containsKeyin interfaceMap<Object,V> - Overrides:
containsKeyin classCharArrayMap<V>
-
get
Description copied from class:CharArrayMapreturns the value of the mapping oflenchars oftextstarting atoff- Overrides:
getin classCharArrayMap<V>
-
get
Description copied from class:CharArrayMapreturns the value of the mapping of the chars inside thisCharSequence- Overrides:
getin classCharArrayMap<V>
-
get
-