|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.icu.util.Measure
public abstract class Measure
An amount of a specified unit, consisting of a Number and a Unit. For example, a length measure consists of a Number and a length unit, such as feet or meters. This is an abstract class. Subclasses specify a concrete Unit type.
Measure objects are parsed and formatted by subclasses of MeasureFormat.
Measure objects are immutable.
Number
,
MeasureUnit
,
MeasureFormat
Constructor Summary | |
---|---|
protected |
Measure(Number number,
MeasureUnit unit)
Deprecated. This is a draft API and might change in a future release of ICU. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
Deprecated. This is a draft API and might change in a future release of ICU. |
Number |
getNumber()
Deprecated. This is a draft API and might change in a future release of ICU. |
MeasureUnit |
getUnit()
Deprecated. This is a draft API and might change in a future release of ICU. |
int |
hashCode()
Deprecated. This is a draft API and might change in a future release of ICU. |
String |
toString()
Deprecated. This is a draft API and might change in a future release of ICU. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected Measure(Number number, MeasureUnit unit)
number
- the numberunit
- the unitMethod Detail |
---|
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
public Number getNumber()
public MeasureUnit getUnit()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |