Class Measure
java.lang.Object
org.graalvm.shadowed.com.ibm.icu.util.Measure
- Direct Known Subclasses:
CurrencyAmount, TimeUnitAmount
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.
Measure objects are parsed and formatted by subclasses of MeasureFormat.
Measure objects are immutable. All subclasses must guarantee that. (However, subclassing is discouraged.)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMeasure(Number number, MeasureUnit unit) Constructs a new object given a number and a unit. -
Method Summary
-
Constructor Details
-
Measure
Constructs a new object given a number and a unit.- Parameters:
number- the numberunit- the unit
-
-
Method Details
-
equals
-
hashCode
-
toString
-
getNumber
-
getUnit
-