@Test public void testToKelvin() { assertEquals("bad conversion", new Double(273.15), toKelvin(0.0)); assertEquals("bad conversion", new Double(293.15), toKelvin(20.0)); assertEquals("bad conversion", new Double(295.65), toKelvin(22.5)); assertEquals("bad conversion", new Double(311.35), toKelvin(38.2)); assertEquals("bad conversion", new Double(323.25), toKelvin(50.1)); assertEquals("bad conversion", new Double(260.95), toKelvin(-12.2)); assertEquals("bad conversion", new Double(0.0), toKelvin(-273.15)); }
static Double toKelvin(Double value) { return formatDouble(value + 273.15); }
Heating extends BaseOpenMessage { static Double toKelvin(Double value) { return formatDouble(value + 273.15); } }
Heating extends BaseOpenMessage { static Double toKelvin(Double value) { return formatDouble(value + 273.15); } private  Heating(String value, TemperatureScale scale); }
Heating extends BaseOpenMessage { static Double toKelvin(Double value) { return formatDouble(value + 273.15); } private  Heating(String value, TemperatureScale scale); static Heating requestTemperature(String where, TemperatureScale scale); static Heating requestTemperature(String where); static Func1<OpenSession, OpenSession> handleTemperature(Action1<Double> onSuccess, Action0 onError); }
Heating extends BaseOpenMessage { static Double toKelvin(Double value) { return formatDouble(value + 273.15); } private  Heating(String value, TemperatureScale scale); static Heating requestTemperature(String where, TemperatureScale scale); static Heating requestTemperature(String where); static Func1<OpenSession, OpenSession> handleTemperature(Action1<Double> onSuccess, Action0 onError);  }