Package overit.geocall.util.measure
Class MeasureWrapper
java.lang.Object
overit.geocall.util.measure.MeasureWrapper
Wrapper class that represent a
Measure with its output display decimal precision defined into the user's language preference (cultural conventions).-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGets the precision of the MeasureWrapper measureGets theMeasureobject that represent this unit of measurement.voidsetPrecision(int precision) Sets the precision of the MeasureWrapper measurevoidsetUnitMeasure(Measure unit) Sets theMeasureobject that represent this unit.
-
Constructor Details
-
MeasureWrapper
-
-
Method Details
-
getUnitMeasure
Gets theMeasureobject that represent this unit of measurement.- Returns:
- The
Measureobject that represent this unit of measurement.
-
getPrecision
public int getPrecision()Gets the precision of the MeasureWrapper measure- Returns:
- The precision of the MeasureWrapper measure
-
setUnitMeasure
Sets theMeasureobject that represent this unit.- Parameters:
unit- TheMeasureobject that represent this unit.
-
setPrecision
public void setPrecision(int precision) Sets the precision of the MeasureWrapper measure- Parameters:
precision- The precision to set
-