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

Update ResultIterable.java #1787

Merged
merged 2 commits into from Nov 21, 2020
Merged

Update ResultIterable.java #1787

merged 2 commits into from Nov 21, 2020

Conversation

maffe
Copy link
Contributor

@maffe maffe commented Nov 20, 2020

Allow Collector<CharSequence, …, …> to be used after applying a RowMapper<String>, for example:
query.map((rs, ctx) -> "ID: " + rs.getInt("id")).collect(Collectors.joining("\n"));

Allow Collector<CharSequence, …, …> to be used after applying a RowMapper<String>, for example:
query.map((rs, ctx) -> "ID: " + rs.getInt("id")).collect(Collectors.joining("\n"));
@leaumar
Copy link

leaumar commented Nov 20, 2020

Please add a test case to serve as an example :)

Add test for ResultIterable.collect(Collector<? super T, ?, R> collector)
@leaumar leaumar requested a review from a team November 20, 2020 21:36
@stevenschlansker stevenschlansker merged commit 810c9d0 into jdbi:master Nov 21, 2020
stevenschlansker added a commit that referenced this pull request Nov 21, 2020
@stevenschlansker
Copy link
Member

Thanks!

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

Successfully merging this pull request may close these issues.

None yet

3 participants