java.lang.Object
org.kohsuke.github.PagedIterable<T>
org.kohsuke.github.PagedSearchIterable<T>
- Type Parameters:
T
- the type parameter
- All Implemented Interfaces:
Iterable<T>
PagedIterable
enhanced to report search result specific information.- Author:
- Kohsuke Kawaguchi
-
Method Summary
Modifier and TypeMethodDescription_iterator
(int pageSize) Iterator.AdaptsIterator
.int
Returns the total number of hit, including the results that's not yet fetched.boolean
Is incomplete boolean.withPageSize
(int size) With page size.Methods inherited from class org.kohsuke.github.PagedIterable
iterator, toArray, toArray, toList, toSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
withPageSize
With page size.- Overrides:
withPageSize
in classPagedIterable<T>
- Parameters:
size
- the size- Returns:
- the paged search iterable
-
getTotalCount
public int getTotalCount()Returns the total number of hit, including the results that's not yet fetched.- Returns:
- the total count
-
isIncomplete
public boolean isIncomplete()Is incomplete boolean.- Returns:
- the boolean
-
_iterator
Iterator.- Specified by:
_iterator
in classPagedIterable<T>
- Parameters:
pageSize
- the page size- Returns:
- the paged iterator
-
adapt
AdaptsIterator
.- Parameters:
base
- the base- Returns:
- the iterator
-