Enum Class TimeUnitGroup
A time-based unit grouping the Unit.MILLISECONDS
and Unit.SECONDS
Unit
s.
public enum TimeUnitGroup
extends Enum<TimeUnitGroup>
java.lang.Object ← java.lang.Enum<TimeUnitGroup> ← io.justtrack.TimeUnitGroup
All Implemented Interfaces
Serializable
, Comparable<TimeUnitGroup>
, Constable
Enum.EnumDesc<E extends Enum<E>>
Enum Constants
MILLISECONDS
public static final TimeUnitGroup MILLISECONDS
SECONDS
public static final TimeUnitGroup SECONDS
Methods
toString
@NonNull
public String toString()
Overrides
toString
in class Enum<TimeUnitGroup>
valueOf
public static TimeUnitGroup valueOf(String name)
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 | Description |
---|---|
name | the name of the enum constant to be returned. |
Returns
the enum constant with the specified name
Throws
Name | Description |
---|---|
IllegalArgumentException | if this enum class has no constant with the specified name |
NullPointerException | if the argument is null |
values
public static TimeUnitGroup[] 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