You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Am curious if it feasible to develop a Lombok annotation to provide Kotlin-style properties in Java. That is, the dev would normally use the property's name to access it instead of getter/setter methods. But if the dev defines a custom getter/setter method then it will be called while the property is still accessed by its name.
Would be nice to have Kotlin-like properties in Java as they make code clearer and easier to read, removing mundane function calls when really there's no need for them.
Regards,
The text was updated successfully, but these errors were encountered:
Hi,
Am curious if it feasible to develop a Lombok annotation to provide Kotlin-style properties in Java. That is, the dev would normally use the property's name to access it instead of getter/setter methods. But if the dev defines a custom getter/setter method then it will be called while the property is still accessed by its name.
See https://kotlinlang.org/docs/properties.html#getters-and-setters for more info how it's done in Kotlin.
Would be nice to have Kotlin-like properties in Java as they make code clearer and easier to read, removing mundane function calls when really there's no need for them.
Regards,
The text was updated successfully, but these errors were encountered: