Re:Java 26 is here, and with it a solid foundation for the f...
by joeblubaugh on Tuesday March 17, 2026 @07:42PM
(#47419868)
In fact it was “the Java way” for many years and “useless getters” was always a big complaint about Java.
The typical answer is opaque types with only readonly methods exported. Not elegant, but it’s there. I guess it’s arguably not a “good way” to do it.