public class

StringInterner

extends Object
java.lang.Object
   ↳ org.apache.lucene.util.StringInterner
Known Direct Subclasses

Class Overview

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().

Summary

Public Constructors
StringInterner()
Public Methods
String intern(char[] arr, int offset, int len)
Returns a single object instance for each equal string.
String intern(String s)
Returns a single object instance for each equal string.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public StringInterner ()

Public Methods

public String intern (char[] arr, int offset, int len)

Returns a single object instance for each equal string.

public String intern (String s)

Returns a single object instance for each equal string.