public class FastStringUtils extends Object
Modifier and Type | Class and Description |
---|---|
protected static class |
FastStringUtils.StringImplementation |
Modifier and Type | Field and Description |
---|---|
static boolean |
ENABLED |
static long |
STRING_COUNT_FIELD_OFFSET |
static FastStringUtils.StringImplementation |
STRING_IMPLEMENTATION |
static long |
STRING_OFFSET_FIELD_OFFSET |
static long |
STRING_VALUE_FIELD_OFFSET |
static sun.misc.Unsafe |
UNSAFE |
Constructor and Description |
---|
FastStringUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
noCopyStringFromChars(char[] chars) |
static char[] |
toCharArray(CharSequence charSequence) |
static char[] |
toCharArray(String string) |
public static final sun.misc.Unsafe UNSAFE
public static final long STRING_VALUE_FIELD_OFFSET
public static final long STRING_OFFSET_FIELD_OFFSET
public static final long STRING_COUNT_FIELD_OFFSET
public static final boolean ENABLED
public static FastStringUtils.StringImplementation STRING_IMPLEMENTATION
public static char[] toCharArray(String string)
string
- string to grab array from.public static char[] toCharArray(CharSequence charSequence)
charSequence
- to grab array from.public static String noCopyStringFromChars(char[] chars)
chars
- to shove array into.