Class FConverter

java.lang.Object
overit.geocall.util.measure.temperatures.TemperaturesConverter
overit.geocall.util.measure.temperatures.FConverter
All Implemented Interfaces:
Serializable, BaseConverter

public class FConverter extends TemperaturesConverter
This class implements the functions to convert fahrenheit to their base unit (kelvin) and vice versa.
See Also:
  • Constructor Details

    • FConverter

      public FConverter()
  • Method Details

    • getConversionFactor

      protected BigDecimal getConversionFactor()
      Specified by:
      getConversionFactor in class TemperaturesConverter
    • toBaseUnit

      public BigDecimal toBaseUnit(BigDecimal value)
      Description copied from interface: BaseConverter
      Makes the conversions from the actual unit representation value to the base uinit measurement value.
      For example, the base unit for kilometers and miles are meters, the base units for the kilograms and pounds are the grams ecc.
      Specified by:
      toBaseUnit in interface BaseConverter
      Overrides:
      toBaseUnit in class TemperaturesConverter
      Parameters:
      value - The value (with its current unit representation) from which start the conversion.
      Returns:
      The base uinit measurement for the value.
    • fromBaseUnit

      public BigDecimal fromBaseUnit(BigDecimal value)
      Description copied from interface: BaseConverter
      Makes the conversions from the base uinit measurement value to the actual unit representation desired.
      For example, from meters to kilometers or from meters to miles ecc.
      Specified by:
      fromBaseUnit in interface BaseConverter
      Overrides:
      fromBaseUnit in class TemperaturesConverter
      Parameters:
      value - The value representing the base unit from which starting the conversion.
      Returns:
      The current uinit measurement value representation desired.