Re: Java Method Overloading

2021-04-20 Thread pierre...@gmail.com
The value was an Integer but is now an Float: private Float value; The "normal" setter is now: public void setValue(Float value) { this.value = value; } Then, I added this method to accomodate the current app : public void setValue(Integer value) { this.value = value.floatValue(); } Thanks

Re: Java Method Overloading

2021-04-20 Thread lofid...@gmail.com
Could you show me the whole class? this.value cannot be an Integer... // This won't work in Java - Type mismatch... private Integer value; public void setValue(Integer value) { this.value = value.floatValue(); } pierre...@gmail.com schrieb am Dienstag, 20. April 2021 um 11:34:57 UTC+2:

Web Browser as a Platform

2021-04-20 Thread lofid...@gmail.com
For info: I had my talk today about Web Browser as a Platform, here is my slides (English): https://bit.ly/DEVKNavigate2021 Enjoy, Lofi -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop receiving emails from

Java Method Overloading

2021-04-20 Thread pierre...@gmail.com
I have a model class Item with a Integer value. I builded an app using this model. For a new particular case, the value should be a Float as well. So I changed the type of value to Float and regenerate setter/getter. In order to not change the current app, I try to create a overloading method :