|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ukcrobots.util.Sleeper
A utility class to provide both static and non-static sleep methods without having to worry about an InterruptedException.
Constructor Summary | |
Sleeper()
Create a Sleeper. |
Method Summary | |
void |
letTimePass(long time)
Sleep for a non-guaranteed time up to time milliseconds. |
static void |
sleep(long time)
Sleep for a non-guaranteed time up to time milliseconds. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait |
Constructor Detail |
public Sleeper()
Method Detail |
public static void sleep(long time)
time
- The maximum time to sleeppublic void letTimePass(long time)
time
- The maximum time to sleep
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |