Package page.codeberg.friedolyn.util
Class Countdown.CountdownTask
java.lang.Object
java.util.TimerTask
page.codeberg.friedolyn.util.Countdown.CountdownTask
- All Implemented Interfaces:
Runnable
- Enclosing class:
Countdown
Decreases the
Countdown.countdown by one second, if the current value is greater than 1 second. Notifies all
Countdown.listeners about the new countdown value via Countdown.CountdownListener.onUpdate(Duration).- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidrun()Decreases theCountdown.countdownby one second, if the current value is greater than 1 second.Methods inherited from class java.util.TimerTask
cancel, scheduledExecutionTime
-
Constructor Details
-
CountdownTask
public CountdownTask()
-
-
Method Details
-
run
public void run()Decreases theCountdown.countdownby one second, if the current value is greater than 1 second. Notifies allCountdown.listenersabout the new countdown value viaCountdown.CountdownListener.onUpdate(Duration).
-