public class Countdown
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
whileFalse(ICondition condition,
long millis)
Runs an empty loop until either the contidion is true or the specified
time in milliseconds is over.
|
static void |
whileTrue(ICondition condition,
long millis)
Runs an empty loop until either the contidion is false or the specified
time in milliseconds is over (more or less).
|
public static void whileTrue(ICondition condition, long millis)
condition
- A condition that is used to continue (true) or finish (false) the loopmillis
- The time in milliseconds after which the loop gets terminated independent of the conditionpublic static void whileFalse(ICondition condition, long millis)
condition
- A condition that is used to continue (false) or finish (true) the loopmillis
- The time in milliseconds after which the loop gets terminated independent of the condition