Skip to content

Commit 962525c

Browse files
authored
Added info on the getXxxxxStream() methods.
1 parent 5104854 commit 962525c

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,21 @@ Pager<Project> projectPager = gitlabApi.getProjectsApi().getProjects(10);
149149
// Stream the Projects printing out the project name.
150150
projectPager.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&lt;T&gt; Support

0 commit comments

Comments
 (0)