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

Convert Vavr Seq to list with asJava method [DATACMNS-1803] #2217

Closed
spring-projects-issues opened this issue Sep 23, 2020 · 0 comments
Closed
Assignees
Labels
type: enhancement A general enhancement

Comments

@spring-projects-issues
Copy link

Mark Paluch opened DATACMNS-1803 and commented

Converting Vavr's Seq into java.util.List with asJava method is more effective because in this case will be created only simple wrapper without creating heavy class and copy data into it.
Since resulting collections will be used only for read operations than readonly nature of such view will not be problem


Referenced from: pull request #287

@spring-projects-issues spring-projects-issues added the type: enhancement A general enhancement label Dec 30, 2020
@mp911de mp911de added this to the 2.4.4 (2020.0.4) milestone Jan 26, 2021
mp911de pushed a commit that referenced this issue Jan 26, 2021
asJava(…) creates a read-only view instead of copying elements into a new List.

Closes #2217
Original pull request: #287
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

2 participants