Package | Description |
---|---|
com.giacomodrago.racerunner |
Modifier and Type | Method and Description |
---|---|
RaceRunnable |
Runner.getWinner()
Returns the winner of the race, or null if no winner.
|
Modifier and Type | Method and Description |
---|---|
void |
RaceListener.win(RaceRunnable runnable)
Call this method from within the run() method of the winner
RaceRunnable , passing this as a parameter. |
Constructor and Description |
---|
Runner(RaceRunnable[] runnables,
int timeout)
Constructs a new
Runner . |
Constructor and Description |
---|
Runner(java.util.Collection<? extends RaceRunnable> runnables,
int timeout)
Constructs a new
Runner . |