net.anidb
Class Episode

java.lang.Object
  extended by net.anidb.Episode

public class Episode
extends java.lang.Object

An episode of an anime.

Version:
1.0, 19.12.2009
Author:
grizzlyxp (http://anidb.net/perl-bin/animedb.pl?show=userpage&uid=63935)

Constructor Summary
Episode()
          Creates an episode.
Episode(java.lang.Long episodeId, Anime anime, java.lang.Long length, java.lang.Long rating, java.lang.Long votes, java.lang.String episodeNumber, java.lang.String englishTitle, java.lang.String romajiTitle, java.lang.String kanjiTitle, java.lang.Long aired)
          Creates an episode.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.Long getAired()
          Returns the air date.
 Anime getAnime()
          Returns the anime.
 java.lang.String getEnglishTitle()
          Returns the english title.
 java.lang.Long getEpisodeId()
          Returns the episode Id.
 java.lang.String getEpisodeNumber()
          Returns the episode number.
 java.lang.String getKanjiTitle()
          Returns the kanji title.
 java.lang.Long getLength()
          Returns the length in minutes.
 java.lang.Long getRating()
          Returns the rating.
 java.lang.String getRomajiTitle()
          Returns the romaji title.
 java.lang.Long getVotes()
          Returns the votes.
 int hashCode()
           
 void setAired(java.lang.Long aired)
          Sets the air date.
 void setAnime(Anime anime)
          Sets the anime.
 void setEnglishTitle(java.lang.String englishTitle)
          Sets the english title.
 void setEpisodeId(java.lang.Long episodeId)
          Sets the episode Id.
 void setEpisodeNumber(java.lang.String episodeNumber)
          Sets the episode number.
 void setKanjiTitle(java.lang.String kanjiTitle)
          Sets the kanji title.
 void setLength(java.lang.Long length)
          Sets the length in minutes.
 void setRating(java.lang.Long rating)
          Sets the rating.
 void setRomajiTitle(java.lang.String romajiTitle)
          Sets the romaji title.
 void setVotes(java.lang.Long votes)
          Sets the votes.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Episode

public Episode()
Creates an episode.


Episode

public Episode(java.lang.Long episodeId,
               Anime anime,
               java.lang.Long length,
               java.lang.Long rating,
               java.lang.Long votes,
               java.lang.String episodeNumber,
               java.lang.String englishTitle,
               java.lang.String romajiTitle,
               java.lang.String kanjiTitle,
               java.lang.Long aired)
Creates an episode.

Parameters:
episodeId - The episode Id.
anime - The anime.
length - The length in minutes.
rating - The rating.
votes - The votes.
episodeNumber - The episode number.
englishTitle - The english title.
romajiTitle - The romaji title.
kanjiTitle - The kanji title.
aired - The air date.
Method Detail

getEpisodeId

public java.lang.Long getEpisodeId()
Returns the episode Id.

Returns:
The episode Id or null, if the episode Id isn't set.

setEpisodeId

public void setEpisodeId(java.lang.Long episodeId)
Sets the episode Id.

Parameters:
episodeId - The episode Id.

getAnime

public Anime getAnime()
Returns the anime.

Returns:
The anime or null, if the anime isn't set.

setAnime

public void setAnime(Anime anime)
Sets the anime.

Parameters:
anime - The anime.

getLength

public java.lang.Long getLength()
Returns the length in minutes.

Returns:
The length or null, if the length isn't set.

setLength

public void setLength(java.lang.Long length)
Sets the length in minutes.

Parameters:
length - The length.

getRating

public java.lang.Long getRating()
Returns the rating.

Returns:
The rating or null, if the rating isn't set.

setRating

public void setRating(java.lang.Long rating)
Sets the rating.

Parameters:
rating - The rating.

getVotes

public java.lang.Long getVotes()
Returns the votes.

Returns:
The votes or null, if the votes aren't set.

setVotes

public void setVotes(java.lang.Long votes)
Sets the votes.

Parameters:
votes - The votes.

getEpisodeNumber

public java.lang.String getEpisodeNumber()
Returns the episode number.

Returns:
The episode number or null, if the episode number isn't set.
See Also:
EpisodeType

setEpisodeNumber

public void setEpisodeNumber(java.lang.String episodeNumber)
Sets the episode number.

Parameters:
episodeNumber - The episode number.
See Also:
EpisodeType

getEnglishTitle

public java.lang.String getEnglishTitle()
Returns the english title.

Returns:
The english title or null, if the english title isn't set.

setEnglishTitle

public void setEnglishTitle(java.lang.String englishTitle)
Sets the english title.

Parameters:
englishTitle - The english title.

getRomajiTitle

public java.lang.String getRomajiTitle()
Returns the romaji title.

Returns:
The romaji title or null, if the romaji title isn't set.

setRomajiTitle

public void setRomajiTitle(java.lang.String romajiTitle)
Sets the romaji title.

Parameters:
romajiTitle - The romaji title.

getKanjiTitle

public java.lang.String getKanjiTitle()
Returns the kanji title.

Returns:
The kanji title or null, if the kanji title isn't set.

setKanjiTitle

public void setKanjiTitle(java.lang.String kanjiTitle)
Sets the kanji title.

Parameters:
kanjiTitle - The kanji title.

getAired

public java.lang.Long getAired()
Returns the air date.

Returns:
The air date or null, if the air date isn't set.

setAired

public void setAired(java.lang.Long aired)
Sets the air date.

Parameters:
aired - The air date.

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object