-
Notifications
You must be signed in to change notification settings - Fork 246
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(java): offer Builders for certain Java classes (#895)
* feat(java): offer Builders for certain Java classes Provide a nested `Builder` class with a static `create` factory for all classes that adhere to the following constraints: - The class is not `abstract` - The class has a visible `initializer` (aka `constructor`) - The constructor has exactly one `struct` (aka `datatype`) parameter - The constructor is not variadic Such builders will request the *positional* parameters to be passed directly to the `Builder#create` method and can (at least currently) not be subsequently modified. All parameters from the `struct` are then set direcly on the `Builder` instance. Fixes #488 * improvements based on PR feedback from @bmaizels * add factory overrides, better documentation coverage
- Loading branch information
1 parent
4ff3a6d
commit f9c1335
Showing
35 changed files
with
1,674 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.