java.lang.Object
dev.katsute.mal4j.property.Genre
Represents a genre.
- Since:
- 2.4.0
- Version:
- 2.4.0
- Author:
- Katsute
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Genre
public Genre()
-
-
Method Details
-
getID
public abstract int getID()Returns the genre ID for the Anime or Manga. Note that Anime and Manga may not share the same IDs. UseisAnimeGenre()
orisMangaGenre()
to get type.- Returns:
- id
- Throws:
NullPointerException
- if ID is null- Since:
- 2.4.0
- See Also:
-
getName
Returns the name of the Genre.- Returns:
- genre name
- Since:
- 2.4.0
-
isAnimeGenre
public abstract boolean isAnimeGenre()Returns if the genre is for an Anime.- Returns:
- if is Anime genre
- Since:
- 2.4.0
-
isMangaGenre
public abstract boolean isMangaGenre()Returns if the genre is for a Manga.- Returns:
- if is Manga genre
- Since:
- 2.4.0
-