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
a5582bd6
Unverified
Commit
a5582bd6
authored
Feb 19, 2019
by
Greg Messner
Committed by
GitHub
Feb 19, 2019
Browse files
Updated Stream support section.
parent
903a47af
Changes
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
a5582bd6
...
...
@@ -160,7 +160,7 @@ projectStream.map(Project::getName).forEach(name -> System.out.println(name));
// Operate on the stream in parallel, this example sorts User instances by username
// NOTE: Fetching of the users is not done in paralell,
// only the soprting of the users is a paralell operation.
Stream
<
User
>
stream
=
new
UserApi
(
gitLabApi
).
getUsersStream
();
Stream
<
User
>
stream
=
gitlabApi
.
getUserApi
(
).
getUsersStream
();
List
<
User
>
users
=
stream
.
parallel
().
sorted
(
comparing
(
User:
:
getUsername
)).
collect
(
toList
());
```
...
...
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