public static double convertToFarenheit ( TemperatureScale from , double temperature ) { switch ( from ) { case FARENHEIT : return temperature ; case CELSIUS : return convertCelsiusToFarenheit ( temperature ) ; case KELVIN : return convertKelvinToFarenheit ( temperature ) ; case RANKINE : return convertRankineToFarenheit ( temperature ) ; default : throw ( new RuntimeException ( "Invalid termpature conversion" ) ) ; } }
Convert a temperature value from another temperature scale into the Farenheit temperature scale .