Skip to main content
Version: SDK 5.0.x

Enum Class TimeUnitGroup

A time-based unit grouping the Unit.MILLISECONDS and Unit.SECONDS Units.

public enum TimeUnitGroup
extends Enum<TimeUnitGroup>
Inheritance

java.lang.Objectjava.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

NameDescription
namethe name of the enum constant to be returned.

Returns

the enum constant with the specified name

Throws

NameDescription
IllegalArgumentExceptionif this enum class has no constant with the specified name
NullPointerExceptionif 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