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 char[] |
getChars(java.lang.String string)
Returns String characters in most performing way.
|
static boolean |
hasUnsafe()
Returns
true if system has the Unsafe. |
public static boolean hasUnsafe()
true if system has the Unsafe.public static char[] getChars(java.lang.String string)
char[] will be returned.
If not, toCharArray() will be called.
Returns null when argument is null.Copyright © 2003-present Jodd Team