public abstract class StringHelper
extends java.lang.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 java.util.Comparator<java.lang.String> |
getVersionComparator() |
static java.lang.String |
intern(java.lang.String s)
Return the same string object for all equal strings
|
public static StringInterner interner
public static java.lang.String intern(java.lang.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 comparepublic static java.util.Comparator<java.lang.String> getVersionComparator()
Copyright © 2000-2022 Apache Software Foundation. All Rights Reserved.