Does Java have the equivalent of @synthesize in Objective-C?

依然范特西╮ 提交于 2019-12-02 02:54:10

As everyone has said, the answer is no, however Project Lombok could be of interest

No, java does not come with such a feature.

No, if I'm not mistaken, not yet at least.

Though Java does not, to my knowledge, have such a feature defined, several Java coding environments (such as Eclipse) produce automatic getters and setters under certain circumstances.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!