|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectUtility
public class Utility
Utility functions.
Field Summary | |
---|---|
static String |
VERSION
The version information. |
Method Summary | |
---|---|
static double |
atof(String str)
Convert a string to a real number. |
static long |
atoi(String str)
Convert a string with a metric prefix to an integer. |
static long |
atoix(String str)
Convert a string with a metric prefix to an integer. |
static long |
hash_fnv(byte[] data)
Get the hash value of a byte array by FNV hashing. |
static long |
hash_murmur(byte[] data)
Get the hash value of a byte array by MurMur hashing. |
static boolean |
remove_files_recursively(String path)
Remove a file or a directory recursively. |
static double |
time()
Get the current time. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String VERSION
Method Detail |
---|
public static double atof(String str)
str
- specifies the string.
public static long atoi(String str)
str
- the string.
public static long atoix(String str)
str
- the string, which can be trailed by a binary metric prefix. "K", "M", "G", "T",
"P", and "E" are supported. They are case-insensitive.
public static long hash_fnv(byte[] data)
data
- the byte array.
public static long hash_murmur(byte[] data)
data
- the byte array.
public static boolean remove_files_recursively(String path)
path
- the path of a file or a directory.
public static double time()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |