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

Add terminal operation toList() #114

Closed
minborg opened this issue Jan 17, 2021 · 1 comment
Closed

Add terminal operation toList() #114

minborg opened this issue Jan 17, 2021 · 1 comment
Labels
enhancement New feature or request
Projects
Milestone

Comments

@minborg
Copy link
Contributor

minborg commented Jan 17, 2021

No description provided.

@minborg minborg added the enhancement New feature or request label Jan 17, 2021
@julgus julgus added this to To do in 1.1.4 via automation Sep 1, 2022
@julgus
Copy link
Member

julgus commented Nov 2, 2022

Java 16 and later versions have a default implementation of this method that is automatically optimizable by JPAStreamer. Thus no custom implementation is needed and a result list can be composed as follows:

List<Film> = jpaStreamer.of(Film.class) 
        .filter(Film$.title.startsWith("T")) 
        .toList(); 

This is the new equivalent of the terminal operation .Collector(Collections.toList()).

@julgus julgus closed this as completed Nov 2, 2022
1.1.4 automation moved this from To do to Done Nov 2, 2022
@julgus julgus added this to the 1.1.1 milestone Dec 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
No open projects
1.1.4
  
Done
Development

No branches or pull requests

2 participants