hkontrol.util
Class Util
java.lang.Object
hkontrol.util.Util
public class Util
- extends java.lang.Object
|
Method Summary |
static java.lang.String |
formatList(java.util.List list,
java.lang.String prefix,
java.lang.String infix,
java.lang.String postfix)
|
static java.lang.String |
formatList(java.lang.String[] array,
java.lang.String prefix,
java.lang.String infix,
java.lang.String postfix)
|
static int |
getInt(byte[] buffer,
int offset)
|
static void |
safeSleep(int mseconds)
Causes the currently executing thread to sleep (temporarily cease
execution) for the specified number of milliseconds. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
safeSleep
public static void safeSleep(int mseconds)
- Causes the currently executing thread to sleep (temporarily cease
execution) for the specified number of milliseconds. The thread does not
lose ownership of any monitors. Unlike Thread.sleep() this method cannot
throw an InterruptedException and is guaranteed to wait at least ms -
1 milliseconds.
- Parameters:
mseconds - Sleep time in milliseconds.
getInt
public static int getInt(byte[] buffer,
int offset)
formatList
public static java.lang.String formatList(java.util.List list,
java.lang.String prefix,
java.lang.String infix,
java.lang.String postfix)
formatList
public static java.lang.String formatList(java.lang.String[] array,
java.lang.String prefix,
java.lang.String infix,
java.lang.String postfix)