Class TimeUnitAmount
java.lang.Object
org.graalvm.shadowed.com.ibm.icu.util.Measure
org.graalvm.shadowed.com.ibm.icu.util.TimeUnitAmount
Express a duration as a time unit and number. Patterned after Currency.
Immutable.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTimeUnitAmount(double number, TimeUnit unit) Create from a number and unit.TimeUnitAmount(Number number, TimeUnit unit) Create from a number and unit. -
Method Summary
Modifier and TypeMethodDescriptionGet the unit (convenience to avoid cast).
-
Constructor Details
-
TimeUnitAmount
-
TimeUnitAmount
Create from a number and unit.
-
-
Method Details
-
getTimeUnit
Get the unit (convenience to avoid cast).
-