Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
佳 邓
Gitlab4j Api
Commits
962525c2
Unverified
Commit
962525c2
authored
Dec 15, 2018
by
Greg Messner
Committed by
GitHub
Dec 15, 2018
Browse files
Added info on the getXxxxxStream() methods.
parent
51048544
Changes
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
962525c2
...
...
@@ -149,6 +149,21 @@ Pager<Project> projectPager = gitlabApi.getProjectsApi().getProjects(10);
// Stream the Projects printing out the project name.
projectPager
.
stream
().
map
(
Project:
:
getName
).
forEach
(
name
->
System
.
out
.
println
(
name
));
```
The following API classes also include
```getXxxxxStream()```
methods which return a Java 8 Stream:
```
GroupApi
IssuesApi
NotesApi
ProjectApi
RepositoryApi
TagsApi
UserApi
```
Example usage:
```
java
// Stream the visible Projects printing out the project name.
gitlabApi
.
getProjectsApi
().
getProjectsStream
().
map
(
Project:
:
getName
).
forEach
(
name
->
System
.
out
.
println
(
name
));
```
---
## Java 8 Optional<T> Support
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment