get

open fun get(literal: String): TimeUnit

Returns the 'Time Unit' literal with the specified literal value.

Return

the matching enumerator or null.

Parameters

literal

the literal.


open fun get(value: Int): TimeUnit

Returns the 'Time Unit' literal with the specified integer value.

Return

the matching enumerator or null.

Parameters

value

the integer value.