com.ibm.icu.util
public abstract class Measure extends Object
Measure objects are parsed and formatted by subclasses of MeasureFormat.
Measure objects are immutable.
See Also: java.lang.Number MeasureUnit MeasureFormat
UNKNOWN: ICU 3.0 This API might change or be removed in a future release.
Constructor Summary | |
---|---|
protected | Measure(Number number, MeasureUnit unit)
Constructs a new object given a number and a unit. |
Method Summary | |
---|---|
boolean | equals(Object obj)
Returns true if the given object is equal to this object. |
Number | getNumber()
Returns the numeric value of this object. |
MeasureUnit | getUnit()
Returns the unit of this object. |
int | hashCode()
Returns a hashcode for this object. |
String | toString()
Returns a string representation of this object. |
Parameters: number the number unit the unit
UNKNOWN: ICU 3.0 This API might change or be removed in a future release.
Returns: true if this object is equal to the given object
UNKNOWN: ICU 3.0 This API might change or be removed in a future release.
Returns: this object's Number
UNKNOWN: ICU 3.0 This API might change or be removed in a future release.
Returns: this object's Unit
UNKNOWN: ICU 3.0 This API might change or be removed in a future release.
Returns: a 32-bit hash
UNKNOWN: ICU 3.0 This API might change or be removed in a future release.
Returns: a string representation consisting of the ISO currency code together with the numeric amount
UNKNOWN: ICU 3.0 This API might change or be removed in a future release.