Package org.apache.lucene.util
Class StringInterner
- java.lang.Object
-
- org.apache.lucene.util.StringInterner
-
- Direct Known Subclasses:
SimpleStringInterner
public class StringInterner extends Object
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().
-
-
Constructor Summary
Constructors Constructor Description StringInterner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.
-