Class Weights

java.lang.Object
overit.geocall.util.measure.Measure
overit.geocall.util.measure.weights.Weights
All Implemented Interfaces:
Serializable

public class Weights extends Measure
List of managed unit measurement that belongs to the weights category.
The surveyed units of measurement are:
See Also:
  • Field Details

    • KILOGRAMS

      public static final Weights KILOGRAMS
    • GRAMS

      public static final Weights GRAMS
    • CENTIGRAMS

      public static final Weights CENTIGRAMS
    • MILLIGRAMS

      public static final Weights MILLIGRAMS
    • STONE

      public static final Weights STONE
    • POUNDS

      public static final Weights POUNDS
    • OUNCES

      public static final Weights OUNCES
  • Method Details

    • getSymbol

      public String getSymbol()
      Description copied from class: Measure
      Gets the symbol associated to the unit measurement.
      For example, kilometers have the "km" symbol, miles have the "mi" symbol and so on.
      Specified by:
      getSymbol in class Measure
      Returns:
      The symbol associated to the unit measurement.
    • getConverterClass

      public BaseConverter getConverterClass()
      Description copied from class: Measure
      Gets the class in which the conversion functions, from/to other units of measurement, are implemented.
      Specified by:
      getConverterClass in class Measure
      Returns:
      The class in which the conversion functions, from/to other units of measurement, are implemented.
    • getAlias

      public String getAlias()
      Description copied from class: Measure
      Gets the alias name of the unit of measurement
      Specified by:
      getAlias in class Measure
      Returns:
      The alias name of the unit of measurement