Skip to content
New issue

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

api: Add methods to join components using a collector #292

Merged
merged 2 commits into from
Mar 1, 2021

Conversation

zml2008
Copy link
Member

@zml2008 zml2008 commented Feb 28, 2021

Closes GH-286

@zml2008 zml2008 added this to the 4.6.0 milestone Feb 28, 2021
* @return the list of children
* @since 4.6.0
*/
@NonNull List<Component> children();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this method necessary?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's not strictly required -- the collector could just work with the builder implementation -- but it feels weird to not expose functionality the collector needs to the api.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not really a fan of exposing getters on builders... but it looks like we do for content() as well, so I guess this is okay.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add a collector to join components together out of a Stream
2 participants