Module Mal4J
Package dev.katsute.mal4j.query
Class LimitOffsetQuery<T extends LimitOffsetQuery<T,R>,R>
java.lang.Object
dev.katsute.mal4j.query.LimitOffsetQuery<T,R>
- Type Parameters:
T
- thisR
- response
- Direct Known Subclasses:
FieldQuery
,ForumSearchQuery
,ForumTopicDetailPostQuery
Represents a query with a limit and offset.
- Since:
- 1.0.0
- Version:
- 1.0.0
- Author:
- Katsute
-
Method Summary
Modifier and TypeMethodDescriptionsearch()
Runs the search query.abstract PaginatedIterator
<R> Runs the search query and returns an iterable.final T
withLimit
(int limit) Sets maximum amount of listings to return.final T
withOffset
(int offset) Sets the offset.
-
Method Details
-
withLimit
Sets maximum amount of listings to return.- Parameters:
limit
- limit- Returns:
- search query
- Since:
- 1.0.0
-
withOffset
Sets the offset.- Parameters:
offset
- offset- Returns:
- search query
- Since:
- 1.0.0
-
search
Runs the search query.- Returns:
- search listings
- Since:
- 1.0.0
-
searchAll
Runs the search query and returns an iterable.- Returns:
- search iterable
- Since:
- 1.0.0
-