| Author |
Does Java 7 introduces a better way to do 'getter/setter'
|
victor fu
Greenhorn
Joined: Apr 09, 2012
Posts: 2
|
|
|
I feel the 'getter and setter' in current Java is cumbersome, and other language already has better way to handle that, Does Java 7 has new feature for that? Thanks
|
 |
Martijn Verburg
author
Bartender
Joined: Jun 24, 2003
Posts: 3268
|
|
|
In short no, the properties style syntax that you'll find in Groovy or C# was not accepted for Java 7 (or 8 for that matter). Not necessarily a bad thing mind you (think about how it changes default access behaviour / programming idioms) :-)
|
Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
|
 |
 |
|
|
subject: Does Java 7 introduces a better way to do 'getter/setter'
|
|
|