public class TimeUnitAmount extends Measure
Immutable.
TimeUnitAmount
,
TimeUnitFormat
Constructor and Description |
---|
TimeUnitAmount(double number,
TimeUnit unit)
Create from a number and unit.
|
TimeUnitAmount(Number number,
TimeUnit unit)
Create from a number and unit.
|
Modifier and Type | Method and Description |
---|---|
TimeUnit |
getTimeUnit()
Get the unit (convenience to avoid cast).
|
public TimeUnitAmount(Number number, TimeUnit unit)
public TimeUnitAmount(double number, TimeUnit unit)
public TimeUnit getTimeUnit()
Copyright © 2016 Unicode, Inc. and others.