Package page.codeberg.friedolyn.util
Enum Class Countdown.Status
- All Implemented Interfaces:
Serializable
,Comparable<Countdown.Status>
,Constable
- Enclosing class:
Countdown
Indicates what a countdown is currently doing or what it has done.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe countdown has been stopped before it could reach zero.The countdown has reached zero and is no longer counting down.The time is currently not being counted down and is instead halted at thecurrent value
.The countdown can bestarted
without further ado.The time is currently being counted down. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Countdown.Status
Returns the enum constant of this class with the specified name.static Countdown.Status[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
READY
The countdown can bestarted
without further ado. -
PAUSED
The time is currently not being counted down and is instead halted at thecurrent value
. UseCountdown.resume()
to continue counting down. -
RUNNING
The time is currently being counted down. UseCountdown.pause()
to halt the countdown temporarily orCountdown.cancel()
to abort it entirely. -
FINISHED
The countdown has reached zero and is no longer counting down. UseCountdown.reset()
to change prepare the countdown for being launched once again with the initial time. UseCountdown.restart()
to immediately launch the countdown again. -
CANCELLED
The countdown has been stopped before it could reach zero. UseCountdown.reset()
to prepare the countdown for being launched once again with the initial time. UseCountdown.restart()
to immediately launch the countdown again.
-
-
Field Details
-
label
-
-
Constructor Details
-
Status
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-