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 16
16
import com .fasterxml .jackson .databind .ObjectMapper ;
17
17
18
18
/**
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
20
20
* 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>
22
22
*
23
23
* <p>Example usage:</p>
24
24
*
30
30
* while (projectsPager.hasNext())) {
31
31
* List<Project> projects = projectsPager.next();
32
32
* for (Project project : projects) {
33
- * System.out.println(project.getName() + " - : " + project.getDescription());
33
+ * System.out.println(project.getName() + " : " + project.getDescription());
34
34
* }
35
35
* }
36
36
* </pre>
@@ -187,6 +187,16 @@ public List<T> next() {
187
187
return (page (currentPage + 1 ));
188
188
}
189
189
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
+
190
200
/**
191
201
* Returns the first page of List. Will rewind the iterator.
192
202
*
You can’t perform that action at this time.
0 commit comments