Immutable.
TimeUnitAmount, com.ibm.icu.text.TimeUnitFormat
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public TimeUnit |
| TimeUnitAmount | back to summary |
|---|---|
| public TimeUnitAmount(Number number, TimeUnit unit) Create from a number and unit.
| |
| TimeUnitAmount | back to summary |
|---|---|
| public TimeUnitAmount(double number, TimeUnit unit) Create from a number and unit.
| |
| getTimeUnit | back to summary |
|---|---|
| public TimeUnit getTimeUnit() Get the unit (convenience to avoid cast).
| |