- All Implemented Interfaces:
Runnable
- Author:
- Bela Ban
-
Constructor Summary
Constructors
-
Method Summary
void
int
void
void
void
void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Metronome
public Metronome(int interval)
-
Method Details
-
add
public void add(Thread... thread)
-
remove
public void remove(Thread thread)
-
getTick
public int getTick()
-
waitFor
public void waitFor(int tick)
-
-
run
public void run()
- Specified by:
run in interface Runnable