public abstract class StringHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
static StringInterner |
interner
Expert:
The StringInterner implementation used by Lucene.
|
| Modifier and Type | Method and Description |
|---|---|
static int |
bytesDifference(byte[] bytes1,
int len1,
byte[] bytes2,
int len2)
Compares two byte[] arrays, element by element, and returns the
number of elements common to both arrays.
|
static Comparator<String> |
getVersionComparator() |
static String |
intern(String s)
Return the same string object for all equal strings
|
public static StringInterner interner
public static final int bytesDifference(byte[] bytes1,
int len1,
byte[] bytes2,
int len2)
bytes1 - The first byte[] to comparebytes2 - The second byte[] to comparepublic static Comparator<String> getVersionComparator()