Class CharArrayMap
Inheritance
Inherited Members
Namespace: Lucene.Net.Analysis.Util
Assembly: Lucene.Net.Analysis.Common.dll
Syntax
public class CharArrayMap
Methods
| Improve this Doc View SourceCopy<TValue>(LuceneVersion, IDictionary<String, TValue>)
Returns a copy of the given map as a CharArrayMap<TValue>. If the given map is a CharArrayMap<TValue> the ignoreCase property will be preserved.
Note: If you intend to create a copy of another CharArrayMap<TValue> where the LuceneVersion of the source map differs from its copy CharArrayMap(LuceneVersion, IDictionary<String, TValue>, Boolean) should be used instead. The Copy<TValue>(LuceneVersion, IDictionary<String, TValue>) will preserve the LuceneVersion of the source map if it is an instance of CharArrayMap<TValue>.
Declaration
public static CharArrayMap<TValue> Copy<TValue>(LuceneVersion matchVersion, IDictionary<string, TValue> map)
Parameters
Type | Name | Description |
---|---|---|
LuceneVersion | matchVersion | compatibility match version see Version note above for details. This argument will be ignored if the given map is a CharArrayMap<TValue>. |
System.Collections.Generic.IDictionary<System.String, TValue> | map | a map to copy |
Returns
Type | Description |
---|---|
CharArrayMap<TValue> | a copy of the given map as a CharArrayMap<TValue>. If the given map
is a CharArrayMap<TValue> the ignoreCase property as well as the
|
Type Parameters
Name | Description |
---|---|
TValue |
UnmodifiableMap<TValue>(CharArrayMap<TValue>)
Returns an unmodifiable CharArrayMap<TValue>. This allows to provide unmodifiable views of internal map for "read-only" use.
Declaration
public static CharArrayMap<TValue> UnmodifiableMap<TValue>(CharArrayMap<TValue> map)
Parameters
Type | Name | Description |
---|---|---|
CharArrayMap<TValue> | map | a map for which the unmodifiable map is returned. |
Returns
Type | Description |
---|---|
CharArrayMap<TValue> | an new unmodifiable CharArrayMap<TValue>. |
Type Parameters
Name | Description |
---|---|
TValue |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | if the given map is |