|
|||||||||
| 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.
| Method Summary | |
|---|---|
static int |
bytesDifference(BytesRef left,
BytesRef right)
Compares two BytesRef, element by element, and returns the
number of elements common to both arrays. |
static boolean |
endsWith(BytesRef ref,
BytesRef suffix)
Returns true iff the ref ends with the given suffix. |
static boolean |
equals(String s1,
String s2)
|
static Comparator<String> |
getVersionComparator()
|
static boolean |
startsWith(BytesRef ref,
BytesRef prefix)
Returns true iff the ref starts with the given prefix. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static int bytesDifference(BytesRef left,
BytesRef right)
BytesRef, element by element, and returns the
number of elements common to both arrays.
left - The first BytesRef to compareright - The second BytesRef to compare
public static Comparator<String> getVersionComparator()
public static boolean equals(String s1,
String s2)
public static boolean startsWith(BytesRef ref,
BytesRef prefix)
true iff the ref starts with the given prefix.
Otherwise false.
ref - the BytesRef to testprefix - the expected prefix
true iff the ref starts with the given prefix.
Otherwise false.
public static boolean endsWith(BytesRef ref,
BytesRef suffix)
true iff the ref ends with the given suffix. Otherwise
false.
ref - the BytesRef to testsuffix - the expected suffix
true iff the ref ends with the given suffix.
Otherwise false.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||