public static double convertFromRankine ( TemperatureScale to , double temperature ) { switch ( to ) { case FARENHEIT : return convertRankineToFarenheit ( temperature ) ; case CELSIUS : return convertRankineToCelsius ( temperature ) ; case KELVIN : return convertRankineToKelvin ( temperature ) ; case RANKINE : return temperature ; default : throw ( new RuntimeException ( "Invalid termpature conversion" ) ) ; } }
Convert a temperature value from the Rankine temperature scale to another .