public static double convertFromKelvin ( TemperatureScale to , double temperature ) { switch ( to ) { case FARENHEIT : return convertKelvinToFarenheit ( temperature ) ; case CELSIUS : return convertKelvinToCelsius ( temperature ) ; case KELVIN : return temperature ; case RANKINE : return convertKelvinToRankine ( temperature ) ; default : throw ( new RuntimeException ( "Invalid termpature conversion" ) ) ; } }
Convert a temperature value from the Kelvin temperature scale to another .