|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ibm.icu.util.Measure
com.ibm.icu.util.TimeUnitAmount
public class TimeUnitAmount
Express a duration as a time unit and number. Patterned after Currency.
Immutable.
TimeUnitAmount,
TimeUnitFormat| Constructor Summary | |
|---|---|
TimeUnitAmount(double number,
TimeUnit unit)
Create from a number and unit. |
|
TimeUnitAmount(Number number,
TimeUnit unit)
Create from a number and unit. |
|
| Method Summary | |
|---|---|
TimeUnit |
getTimeUnit()
Get the unit (convenience to avoid cast). |
| Methods inherited from class com.ibm.icu.util.Measure |
|---|
equals, getNumber, getUnit, hashCode, numbersEqual, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TimeUnitAmount(Number number,
TimeUnit unit)
public TimeUnitAmount(double number,
TimeUnit unit)
| Method Detail |
|---|
public TimeUnit getTimeUnit()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||