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(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, trimToSize
equals, hashCode
containsAll, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
containsAll, equals, hashCode
parallelStream, stream
public APINodeList(APIRequest<T> request, String rawValue, String header)
public APINodeList<T> withAutoPaginationIterator(boolean autoPagination)
public APINodeList<T> nextPage() throws APIException
APIException
public APINodeList<T> nextPage(int limit) throws APIException
APIException
public void setAppSecret(String appSecret)
public String getRawResponse()
getRawResponse
in interface APIResponse
public com.google.gson.JsonObject getRawResponseAsJsonObject()
getRawResponseAsJsonObject
in interface APIResponse
public T head()
head
in interface APIResponse
public String getHeader()
getHeader
in interface APIResponse
public APIException getException()
getException
in interface APIResponse
public 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 © 2023. All rights reserved.