public class UnsafeUtil
extends java.lang.Object
java.misc.Unsafe, mostly for private use.
See: http://mishadoff.github.io/blog/java-magic-part-4-sun-dot-misc-dot-unsafe/
Thanx to Gatling (http://gatling-tool.org)!| Modifier and Type | Field and Description |
|---|---|
static sun.misc.Unsafe |
UNSAFE |
| Constructor and Description |
|---|
UnsafeUtil() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
createMutableString(char[] chars)
Creates mutable strings from given char array.
|
static char[] |
getChars(java.lang.String string)
Returns String characters in most performing way.
|
public static char[] getChars(java.lang.String string)
char[] will be returned.
If not, toCharArray() will be called.public static java.lang.String createMutableString(char[] chars)
Copyright © 2003-2013 Jodd Team