File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -149,6 +149,21 @@ Pager<Project> projectPager = gitlabApi.getProjectsApi().getProjects(10);
149149// Stream the Projects printing out the project name.
150150projectPager. stream(). map(Project :: getName). forEach(name - > System . out. println(name));
151151```
152+ The following API classes also include ``` getXxxxxStream() ``` methods which return a Java 8 Stream:
153+ ```
154+ GroupApi
155+ IssuesApi
156+ NotesApi
157+ ProjectApi
158+ RepositoryApi
159+ TagsApi
160+ UserApi
161+ ```
162+ Example usage:
163+ ``` java
164+ // Stream the visible Projects printing out the project name.
165+ gitlabApi. getProjectsApi(). getProjectsStream(). map(Project :: getName). forEach(name - > System . out. println(name));
166+ ```
152167
153168---
154169## Java 8 Optional< ; T> ; Support
You can’t perform that action at this time.
0 commit comments