File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -144,10 +144,10 @@ List<Project> allProjects = projectPager.all();
144144As of GitLab4J-API 4.9.2, you can also stream list based items in a Java 8 Stream using a getProjectsStream() method as follows:
145145``` java
146146// Get a Stream<Project> instance.
147- Stream<Project > projectPager = gitlabApi. getProjectApi(). getProjectsStream();
147+ Stream<Project > projects = gitlabApi. getProjectApi(). getProjectsStream();
148148
149149// Stream the Projects printing out the project name.
150- projectPager . map(Project :: getName). forEach(name - > System . out. println(name));
150+ projects . map(Project :: getName). forEach(name - > System . out. println(name));
151151```
152152The following API classes also include ``` getXxxxxStream() ``` methods which return a Java 8 Stream:
153153```
You can’t perform that action at this time.
0 commit comments