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
3912beee
Commit
3912beee
authored
Jul 15, 2017
by
Greg Messner
Committed by
GitHub
Jul 15, 2017
Browse files
Cleaned up Pager example.
parent
1c97d51e
Changes
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
3912beee
...
@@ -56,8 +56,7 @@ Pager<Project> projectPager = gitlabApi.getProjectsApi().getProjects(10);
...
@@ -56,8 +56,7 @@ Pager<Project> projectPager = gitlabApi.getProjectsApi().getProjects(10);
// Iterate through the pages and print out the name and description
// Iterate through the pages and print out the name and description
while
(
projectsPager
.
hasNext
()))
{
while
(
projectsPager
.
hasNext
()))
{
List
<
Project
>
projects
=
projectsPager
.
next
();
for
(
Project
project
:
projectPager
.
next
())
{
for
(
Project
project
:
projects
)
{
System
.
out
.
println
(
project
.
getName
()
+
" -: "
+
project
.
getDescription
());
System
.
out
.
println
(
project
.
getName
()
+
" -: "
+
project
.
getDescription
());
}
}
}
}
...
...
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