public static double convertToRankine ( TemperatureScale from , double temperature ) { switch ( from ) { case FARENHEIT : return convertFarenheitToRankine ( temperature ) ; case CELSIUS : return convertCelsiusToRankine ( temperature ) ; case KELVIN : return convertKelvinToRankine ( temperature ) ; case RANKINE : return temperature ; default : throw ( new RuntimeException ( "Invalid termpature conversion" ) ) ; } }
Convert a temperature value from another temperature scale into the Rankine temperature scale .