Skip to content
Advertisement

Annotated setters that return class insance

For some time now I have been bothered by the lack of fluent interface setters. I am aware of Lomboks system however the generated functions still return a void. Would it be possible/and how to make a setter to return its class instance? Thanks

Advertisement

Answer

Answer solved with Accessors.

@Accessor(chain=true)

Over any class which you’d like to have chained.

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement