We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Java Lombok Builder is able to convert a static method into a BuilderClass.
static method
May I know if it is possible to do the same for Rust lombok?
The text was updated successfully, but these errors were encountered:
I haven't heard of it before 🙃 Can you please refer to this functionality in the doc or provide the exact way how it looks and what is solves? Thanks!
Sorry, something went wrong.
Yes, it looks like something below.
library developer
@Builder(builderMethodName = "builder", builderClassName = "HttpsImmutableClientBuilder") public static ImmutableClient newHttpsClient(String name) { return new ImmutableClient("Https", name); }
library consumer
HttpsImmutableClientBuilder.builder().name("name").build().
It allows you to write common builder logics into the static method, while the consumer can continue to use builder pattern to generate the object..
No branches or pull requests
Java Lombok Builder is able to convert a
static method
into a BuilderClass.May I know if it is possible to do the same for Rust lombok?
The text was updated successfully, but these errors were encountered: