I want a simple data class that I can use like: Sensor(localDateTime, TEMP, RH) to create the object. But every object should also have the temperature in F automatically calculated and available.
s
Svyatoslav Kuzmich [JB]
07/10/2018, 7:33 PM
Alternatively, you can create Temperature data class with conversion logic and custom toString and use it instead of Double. This way Sensor (and all other places that deal with temperature) would work "automagically".