Skip to content

Commit 7881a1b

Browse files
committed
Added remove() method.
1 parent b65f047 commit 7881a1b

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

src/main/java/org/gitlab4j/api/Pager.java

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
import com.fasterxml.jackson.databind.ObjectMapper;
1717

1818
/**
19-
* This class defines an Iterator implementation that is used as a paging iterator for all API methods that
19+
* <p>This class defines an Iterator implementation that is used as a paging iterator for all API methods that
2020
* return a List of objects. It hides the details of interacting with the GitLab API when paging is involved
21-
* simplifying accessing large lists of objects.
21+
* simplifying accessing large lists of objects.</p>
2222
*
2323
* <p>Example usage:</p>
2424
*
@@ -30,7 +30,7 @@
3030
* while (projectsPager.hasNext())) {
3131
* List&lt;Project&gt; projects = projectsPager.next();
3232
* for (Project project : projects) {
33-
* System.out.println(project.getName() + " -: " + project.getDescription());
33+
* System.out.println(project.getName() + " : " + project.getDescription());
3434
* }
3535
* }
3636
* </pre>
@@ -187,6 +187,16 @@ public List<T> next() {
187187
return (page(currentPage + 1));
188188
}
189189

190+
/**
191+
* This method is not implemented and will throw an UnsupportedOperationException if called.
192+
*
193+
* @throws UnsupportedOperationException when invoked
194+
*/
195+
@Override
196+
public void remove() {
197+
throw new UnsupportedOperationException();
198+
}
199+
190200
/**
191201
* Returns the first page of List. Will rewind the iterator.
192202
*

0 commit comments

Comments
 (0)