Enum Class TimeUtilities.TimerFormat
- All Implemented Interfaces:
Serializable,Comparable<TimeUtilities.TimerFormat>,Constable
- Enclosing class:
TimeUtilities
Enum representing various timer formats. Each format is associated with a specific format string.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionTimer format in hours, minutes, and seconds (HH:MM:SS).Timer format in hours, minutes, seconds, and tenths of a second (HH:MM:SS.0).Timer format in hours, minutes, seconds, and milliseconds (HH:MM:SS.000).Timer format in minutes, seconds, and tenths of a second (MM:SS.0).Timer format in minutes, seconds, and milliseconds (MM:SS.000).Timer format in seconds and tenths of a second (S.0).Timer format in seconds and hundredths of a second (S.00).Timer format in seconds and milliseconds (S.000).Timer format in seconds and tenths of a second (SS.0).Timer format in seconds and hundredths of a second (SS.00).Timer format in seconds and milliseconds (SS.000).Undefined timer format. -
Method Summary
Modifier and TypeMethodDescriptionstatic TimeUtilities.TimerFormatReturns the enum constant of this class with the specified name.static TimeUtilities.TimerFormat[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNDEFINED
Undefined timer format. -
HH_MM_SS
Timer format in hours, minutes, and seconds (HH:MM:SS). -
MM_SS_000
Timer format in minutes, seconds, and milliseconds (MM:SS.000). -
MM_SS_0
Timer format in minutes, seconds, and tenths of a second (MM:SS.0). -
SS_000
Timer format in seconds and milliseconds (SS.000). -
SS_00
Timer format in seconds and hundredths of a second (SS.00). -
SS_0
Timer format in seconds and tenths of a second (SS.0). -
S_000
Timer format in seconds and milliseconds (S.000). -
S_00
Timer format in seconds and hundredths of a second (S.00). -
S_0
Timer format in seconds and tenths of a second (S.0). -
HH_MM_SS_000
Timer format in hours, minutes, seconds, and milliseconds (HH:MM:SS.000). -
HH_MM_SS_0
Timer format in hours, minutes, seconds, and tenths of a second (HH:MM:SS.0).
-
-
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
-
getFormatString
-