java.lang.Object | |
↳ | org.apache.lucene.util.StringHelper |
Methods for manipulating strings.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
interner | Expert: The StringInterner implementation used by Lucene. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Compares two byte[] arrays, element by element, and returns the
number of elements common to both arrays.
| |||||||||||
Return the same string object for all equal strings
| |||||||||||
Compares two strings, character by character, and returns the
first position where the two strings differ from one another.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Expert: The StringInterner implementation used by Lucene. This shouldn't be changed to an incompatible implementation after other Lucene APIs have been used.
Compares two byte[] arrays, element by element, and returns the number of elements common to both arrays.
bytes1 | The first byte[] to compare |
---|---|
bytes2 | The second byte[] to compare |
Compares two strings, character by character, and returns the first position where the two strings differ from one another.
s1 | The first string to compare |
---|---|
s2 | The second string to compare |