- All Implemented Interfaces:
NSFW<AnimeSeasonQuery>
public abstract class AnimeSeasonQuery
extends FieldQuery<AnimeSeasonQuery,Anime>
implements NSFW<AnimeSeasonQuery>
Documentation: https://myanimelist.net/apiconfig/references/api/v2#operation/anime_season_year_season_get
Represents an Anime season query.
Represents an Anime season query.
- Since:
- 1.0.0
- Version:
- 2.12.0
- Author:
- Katsute
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal AnimeSeasonQuery
Sets query to also return NSFW results.final AnimeSeasonQuery
includeNSFW
(boolean nsfw) Sets if the query will return NSFW results.final AnimeSeasonQuery
sortBy
(AnimeSeasonSort sort) Sets the sorting option.final AnimeSeasonQuery
Sets the sorting option.Methods inherited from class dev.katsute.mal4j.query.FieldQuery
invertFields, invertFields, withAllFields, withField, withFields, withFields, withNoFields
Methods inherited from class dev.katsute.mal4j.query.LimitOffsetQuery
search, searchAll, withLimit, withOffset
-
Constructor Details
-
AnimeSeasonQuery
Creates an Anime season query.
Do not use this constructor, useMyAnimeList.getAnimeSeason(int, Season)
instead.- Parameters:
year
- yearseason
- season- Since:
- 1.0.0
- See Also:
-
-
Method Details
-
sortBy
Sets the sorting option.- Parameters:
sort
- sort- Returns:
- season query
- Since:
- 1.0.0
- See Also:
-
sortBy
Sets the sorting option.
It is recommended to usesortBy(AnimeSeasonSort)
instead of this method. This method should only be used of the season sort is missing fromAnimeSeasonSort
.- Parameters:
sort
- raw sort- Returns:
- season query
- Since:
- 2.9.0
- See Also:
-
includeNSFW
Description copied from interface:NSFW
Sets query to also return NSFW results.- Specified by:
includeNSFW
in interfaceNSFW<AnimeSeasonQuery>
- Returns:
- query
- See Also:
-
includeNSFW
Description copied from interface:NSFW
Sets if the query will return NSFW results.- Specified by:
includeNSFW
in interfaceNSFW<AnimeSeasonQuery>
- Parameters:
nsfw
- nsfw- Returns:
- query
- See Also:
-