Show / Hide Table of Contents

    Class StringInterner

    Subclasses of StringInterner are required to return the same single String object for all equal strings. Depending on the implementation, this may not be the same object returned as String.intern().

    This StringInterner base class simply delegates to String.intern().

    LUCENENET specific.

    Inheritance
    System.Object
    StringInterner
    SimpleStringInterner
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Lucene.Net.Support
    Assembly: Lucene.Net.dll
    Syntax
    public class StringInterner

    Methods

    | Improve this Doc View Source

    Intern(Char[], Int32, Int32)

    Returns a single object instance for each equal string.

    Declaration
    public virtual string Intern(char[] arr, int offset, int len)
    Parameters
    Type Name Description
    System.Char[] arr
    System.Int32 offset
    System.Int32 len
    Returns
    Type Description
    System.String
    | Improve this Doc View Source

    Intern(String)

    Returns a single object instance for each equal string.

    Declaration
    public virtual string Intern(string s)
    Parameters
    Type Name Description
    System.String s
    Returns
    Type Description
    System.String

    Extension Methods

    Number.IsNumber(Object)
    • Improve this Doc
    • View Source
    Back to top Copyright © 2019 Licensed to the Apache Software Foundation (ASF)