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 extends Object,
V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Field Summary
Fields inherited from class org.apache.lucene.analysis.CharArrayMap
keys, values
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
containsKey
(char[] text, int off, int len) boolean
true if theCharSequence
is in theCharArrayMap.keySet()
boolean
get
(char[] text, int off, int len) returns the value of the mapping oflen
chars oftext
starting atoff
get
(CharSequence cs) returns the value of the mapping of the chars inside thisCharSequence
Methods inherited from class org.apache.lucene.analysis.CharArrayMap.UnmodifiableCharArrayMap
clear, createEntrySet, put, put, put, put, remove
Methods inherited from class org.apache.lucene.analysis.CharArrayMap
copy, emptyMap, entrySet, keySet, originalKeySet, size, toString, unmodifiableMap
Methods inherited from class java.util.AbstractMap
clone, containsValue, equals, hashCode, isEmpty, putAll, values
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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:
containsKey
in classCharArrayMap<V>
-
containsKey
Description copied from class:CharArrayMap
true if theCharSequence
is in theCharArrayMap.keySet()
- Overrides:
containsKey
in classCharArrayMap<V>
-
containsKey
- Specified by:
containsKey
in interfaceMap<Object,
V> - Overrides:
containsKey
in classCharArrayMap<V>
-
get
Description copied from class:CharArrayMap
returns the value of the mapping oflen
chars oftext
starting atoff
- Overrides:
get
in classCharArrayMap<V>
-
get
Description copied from class:CharArrayMap
returns the value of the mapping of the chars inside thisCharSequence
- Overrides:
get
in classCharArrayMap<V>
-
get
-