java.lang.Object
dev.katsute.mal4j.PaginatedIterator<T>
- Type Parameters:
T
- type
- All Implemented Interfaces:
Iterator<T>
Represents a paged response.
- Since:
- 1.0.0
- Version:
- 2.10.0
- Author:
- Katsute
-
Constructor Details
-
PaginatedIterator
public PaginatedIterator()
-
-
Method Details
-
hasNext
public final boolean hasNext() -
next
-
remove
public final void remove() -
toList
Returns the current page as a list.- Returns:
- list
- Since:
- 1.0.0
-
toSet
Returns the current page as a set.- Returns:
- set
- Since:
- 1.0.0
-