public class FastStringUtils
extends java.lang.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 java.lang.String |
noCopyStringFromChars(char[] chars) |
static char[] |
toCharArray(java.lang.CharSequence charSequence) |
static char[] |
toCharArray(java.lang.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(java.lang.String string)
string
- string to grab array from.public static char[] toCharArray(java.lang.CharSequence charSequence)
charSequence
- to grab array from.public static java.lang.String noCopyStringFromChars(char[] chars)
chars
- to shove array into.