public class APINodeList<T extends APINode> extends ArrayList<T> implements APIResponse
modCount| Constructor and Description |
|---|
APINodeList(APIRequest<T> request,
String rawValue,
String header) |
| Modifier and Type | Method and Description |
|---|---|
void |
forEach(java.util.function.Consumer<? super T> action) |
protected Iterator<T> |
getCurrentListIterator() |
APIException |
getException() |
String |
getHeader() |
String |
getRawResponse() |
com.google.gson.JsonObject |
getRawResponseAsJsonObject() |
T |
head() |
Iterator<T> |
iterator() |
APINodeList<T> |
nextPage() |
APINodeList<T> |
nextPage(int limit) |
void |
setAppSecret(String appSecret) |
void |
setCursors(String before,
String after) |
void |
setPaging(String previous,
String next) |
int |
size() |
Spliterator<T> |
spliterator() |
APINodeList<T> |
withAutoPaginationIterator(boolean autoPagination) |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, sort, subList, toArray, toArray, trimToSizeequals, hashCodecontainsAll, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitcontainsAll, equals, hashCodeparallelStream, streampublic APINodeList(APIRequest<T> request, String rawValue, String header)
public APINodeList<T> withAutoPaginationIterator(boolean autoPagination)
public APINodeList<T> nextPage() throws APIException
APIExceptionpublic APINodeList<T> nextPage(int limit) throws APIException
APIExceptionpublic void setAppSecret(String appSecret)
public void forEach(java.util.function.Consumer<? super T> action)
public String getRawResponse()
getRawResponse in interface APIResponsepublic com.google.gson.JsonObject getRawResponseAsJsonObject()
getRawResponseAsJsonObject in interface APIResponsepublic T head()
head in interface APIResponsepublic String getHeader()
getHeader in interface APIResponsepublic APIException getException()
getException in interface APIResponsepublic int size()
public Spliterator<T> spliterator()
spliterator in interface Iterable<T extends APINode>spliterator in interface Collection<T extends APINode>spliterator in interface List<T extends APINode>spliterator in class ArrayList<T extends APINode>Copyright © 2020. All rights reserved.