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();
144
144
As of GitLab4J-API 4.9.2, you can also stream list based items in a Java 8 Stream using a getProjectsStream() method as follows:
145
145
``` java
146
146
// Get a Stream<Project> instance.
147
- Stream<Project > projectPager = gitlabApi. getProjectApi(). getProjectsStream();
147
+ Stream<Project > projects = gitlabApi. getProjectApi(). getProjectsStream();
148
148
149
149
// 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));
151
151
```
152
152
The following API classes also include ``` getXxxxxStream() ``` methods which return a Java 8 Stream:
153
153
```
You can’t perform that action at this time.
0 commit comments