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)!Constructor and Description |
---|
UnsafeUtil() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
createString(char[] chars)
Creates (mutable) string 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.
Returns null
when argument is null
.public static java.lang.String createString(char[] chars)
Copyright © 2003-2013 Jodd Team