Class FahrenheitUnit

java.lang.Object
com.tccc.kos.commons.util.units.Unit
com.tccc.kos.commons.util.units.impl.FahrenheitUnit

public class FahrenheitUnit extends Unit
A Unit class that represents temperature in degrees Fahrenheit.
Since:
1.0
Version:
2023-02-28
  • Constructor Details

    • FahrenheitUnit

      public FahrenheitUnit()
      Creates a FahrenheitUnit with no alias and default set to true.
    • FahrenheitUnit

      public FahrenheitUnit(String alias, boolean def)
      Creates a FahrenheitUnit with the specified alias and default flag.
        degrees-F = (1.8 * degrees-C) + 32.0
       
      Parameters:
      alias - alias for the unit
      def - true indicates this unit is the system default