Class PaginationAction.PaginationIterator<E>
java.lang.Object
net.dv8tion.jda.api.requests.restaction.pagination.PaginationAction.PaginationIterator<E>
- All Implemented Interfaces:
Iterator<E>
- Enclosing interface:
PaginationAction<T,
M extends PaginationAction<T, M>>
Iterator implementation for a
This iterator will first iterate over all currently cached entities and continue to retrieve new entities as needed.
PaginationAction
.
This iterator will first iterate over all currently cached entities and continue to retrieve new entities as needed.
To retrieve new entities after reaching the end of the current cache, this iterator will
request a List of new entities through a call of RestAction.complete()
.
It is recommended to use the highest possible limit for this task. (see PaginationAction.limit(int)
)