File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed
src/main/java/org/gitlab4j/api Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change 1616import 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 *
3030 * while (projectsPager.hasNext())) {
3131 * List<Project> 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 *
You can’t perform that action at this time.
0 commit comments