public enum Unsafe extends Enum<Unsafe>
| Modifier and Type | Method and Description |
|---|---|
static char[] |
bufOf(CharSequence chars)
Returns char array that backed the char sequence specified
|
static char[] |
bufOf(FastStr s)
Get the char array buf from a FastStr instance
|
static char[] |
bufOf(String s)
Get the char array buf out of a string directly
|
static String |
stringOf(char[] buf)
Returns a string directly from the char array supplied without
copy operation
|
static Unsafe |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Unsafe[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static Unsafe[] values()
for (Unsafe c : Unsafe.values()) System.out.println(c);
public static Unsafe valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static char[] bufOf(String s)
s - A stringpublic static char[] bufOf(CharSequence chars)
chars - the char sequencepublic static String stringOf(char[] buf)
buf - the char array used to construct the return stringpublic static char[] bufOf(FastStr s)
s - the FastStr instanceCopyright © 2017. All Rights Reserved.