Search code examples
javaannotations

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


Solution

  • Answer solved with Accessors.

    @Accessor(chain=true)
    

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