Module Mal4J

Class Genre

java.lang.Object
dev.katsute.mal4j.property.Genre

public abstract class Genre extends Object
Represents a genre.
Since:
2.4.0
Version:
2.4.0
Author:
Katsute
  • 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. Use isAnimeGenre() or isMangaGenre() to get type.
      Returns:
      id
      Throws:
      NullPointerException - if ID is null
      Since:
      2.4.0
      See Also:
    • getName

      public abstract String 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