Class MeasureWrapper

java.lang.Object
overit.geocall.util.measure.MeasureWrapper

public class MeasureWrapper extends Object
Wrapper class that represent a Measure with its output display decimal precision defined into the user's language preference (cultural conventions).
  • Constructor Details

    • MeasureWrapper

      public MeasureWrapper(Measure unit, int precision)
  • Method Details

    • getUnitMeasure

      public Measure getUnitMeasure()
      Gets the Measure object that represent this unit of measurement.
      Returns:
      The Measure object 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

      public void setUnitMeasure(Measure unit)
      Sets the Measure object that represent this unit.
      Parameters:
      unit - The Measure object that represent this unit.
    • setPrecision

      public void setPrecision(int precision)
      Sets the precision of the MeasureWrapper measure
      Parameters:
      precision - The precision to set