public interface RaceListener
RaceRunnable
and is used
to notify the Runner
that a RaceRunnable
won the race.Modifier and Type | Method and Description |
---|---|
void |
win(RaceRunnable runnable)
Call this method from within the run() method of the winner
RaceRunnable , passing this as a parameter. |
void win(RaceRunnable runnable)
RaceRunnable
, passing this as a parameter.runnable
- the winner RaceRunnable