java.lang.Object
dev.katsute.mal4j.query.LimitOffsetQuery<T,R>
dev.katsute.mal4j.query.FieldQuery<T,R>
- Type Parameters:
T
- thisR
- response
- Direct Known Subclasses:
AnimeCharacterQuery
,AnimeRankingQuery
,AnimeSeasonQuery
,AnimeSuggestionQuery
,MangaRankingQuery
,SearchQuery
,UserAnimeListQuery
,UserMangaListQuery
Represents a field query. Returns all fields by default.
- Since:
- 1.0.0
- Version:
- 2.2.0
- Author:
- Katsute
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionfinal T
Makes the query return all except the fields provided.final T
invertFields
(boolean inverted) Makes the query return all except the fields provided.final T
Makes query return all possible fields.final T
Adds a field to return.final T
withFields
(String... fields) Adds a list of fields to return.final T
withFields
(List<String> fields) Adds a list of fields to return.final T
Makes query return only default fields.Methods inherited from class dev.katsute.mal4j.query.LimitOffsetQuery
search, searchAll, withLimit, withOffset
-
Method Details
-
withField
Adds a field to return.- Parameters:
field
- a field or comma separated fields that should be returned- Returns:
- query
- Since:
- 1.0.0
- See Also:
-
withFields
Adds a list of fields to return.- Parameters:
fields
- a comma separated string or a string array of the fields that should be returned- Returns:
- query
- Since:
- 1.0.0
- See Also:
-
withFields
Adds a list of fields to return.- Parameters:
fields
- a list of the fields that should be returned- Returns:
- query
- Since:
- 1.0.0
- See Also:
-
withAllFields
Makes query return all possible fields.- Returns:
- query
- Since:
- 1.0.0
- See Also:
-
invertFields
Makes the query return all except the fields provided.- Returns:
- query
- Since:
- 2.2.0
- See Also:
-
invertFields
Makes the query return all except the fields provided.- Parameters:
inverted
- whether the fields should be inverted or not- Returns:
- query
- Since:
- 2.2.0
- See Also:
-
withNoFields
Makes query return only default fields.- Returns:
- query
- Since:
- 1.0.0
- See Also:
-