Show / Hide Table of Contents

    Class CharArrayMap

    Inheritance
    System.Object
    CharArrayMap
    Namespace: Lucene.Net.Analysis.Util
    Assembly: Lucene.Net.Analysis.Common.dll
    Syntax
    public class CharArrayMap : object

    Methods

    | Improve this Doc View Source

    Copy<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>.

    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 matchVersion will be of the given map will be preserved.

    Type Parameters
    Name Description
    TValue
    | Improve this Doc View Source

    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
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)