|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.lucene.util.StringHelper
public abstract class StringHelper
Methods for manipulating strings.
| Field Summary | |
|---|---|
static StringInterner |
interner
Expert: The StringInterner implementation used by Lucene. |
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static StringInterner interner
| Method Detail |
|---|
public static String intern(String s)
public static final int bytesDifference(byte[] bytes1,
int len1,
byte[] bytes2,
int len2)
bytes1 - The first byte[] to comparebytes2 - The second byte[] to compare
public static Comparator<String> getVersionComparator()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||