| 构造器和说明 |
|---|
Pager(AbstractApi api,
String url,
ApiQueryParam queryParam,
Class<T> type) |
Pager(AbstractApi api,
String url,
int itemsPerPage,
Class<T> type) |
| 限定符和类型 | 方法和说明 |
|---|---|
List<T> |
all()
Gets all the items from each page
|
List<T> |
first() |
int |
getCurrentPage() |
int |
getItemsPerPage() |
int |
getTotalItems() |
int |
getTotalPages() |
boolean |
hasNext() |
List<T> |
last() |
List<T> |
next() |
List<T> |
page(int pageNumber) |
void |
remove() |
Stream<T> |
stream() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic Pager(AbstractApi api, String url, int itemsPerPage, Class<T> type) throws ApiException
ApiExceptionpublic Pager(AbstractApi api, String url, ApiQueryParam queryParam, Class<T> type) throws ApiException
ApiExceptionpublic int getCurrentPage()
public int getTotalPages()
public int getItemsPerPage()
public int getTotalItems()
public Stream<T> stream() throws IllegalStateException
Copyright © 2022 Vikadata LTD. All rights reserved.