net.anidb
Class GroupStatus

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

public class GroupStatus
extends java.lang.Object

The group status for an anime.

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

Constructor Summary
GroupStatus()
          Creates a group status.
GroupStatus(Anime anime, Group group, java.lang.Integer completionState, java.lang.Integer lastEpisodeNumber, java.lang.Integer rating, java.lang.Integer votes, java.lang.String episodeRange)
          Creates a group status.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 Anime getAnime()
          Returns the anime.
 java.lang.Integer getCompletionState()
          Returns the completion state.
 java.lang.String getEpisodeRange()
          Returns the episode range.
 Group getGroup()
          Returns the group.
 java.lang.Integer getLastEpisodeNumber()
          Returns the last episode number.
 java.lang.Integer getRating()
          Returns the rating.
 java.lang.Integer getVotes()
          Returns the votes.
 int hashCode()
           
 void setAnime(Anime anime)
          Sets the anime.
 void setCompletionState(java.lang.Integer completionState)
          Sets the completion state.
 void setEpisodeRange(java.lang.String episodeRange)
          Sets the episode range.
 void setGroup(Group group)
          Sets the group.
 void setLastEpisodeNumber(java.lang.Integer lastEpisodeNumber)
          Sets the last episode number.
 void setRating(java.lang.Integer rating)
          Sets the rating.
 void setVotes(java.lang.Integer votes)
          Sets the votes.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroupStatus

public GroupStatus()
Creates a group status.


GroupStatus

public GroupStatus(Anime anime,
                   Group group,
                   java.lang.Integer completionState,
                   java.lang.Integer lastEpisodeNumber,
                   java.lang.Integer rating,
                   java.lang.Integer votes,
                   java.lang.String episodeRange)
Creates a group status.

Parameters:
anime - The anime.
group - The group.
completionState - The completion state.
lastEpisodeNumber - The last episode number.
rating - The rating.
votes - The votes.
episodeRange - The episode range.
Method Detail

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.

getGroup

public Group getGroup()
Returns the group.

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

setGroup

public void setGroup(Group group)
Sets the group.

Parameters:
group - The group.

getCompletionState

public java.lang.Integer getCompletionState()
Returns the completion state.

Returns:
The completion state or null, if the completion state isn't set.
See Also:
GroupStatusState

setCompletionState

public void setCompletionState(java.lang.Integer completionState)
Sets the completion state.

Parameters:
completionState - The completion state.
See Also:
GroupStatusState

getLastEpisodeNumber

public java.lang.Integer getLastEpisodeNumber()
Returns the last episode number.

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

setLastEpisodeNumber

public void setLastEpisodeNumber(java.lang.Integer lastEpisodeNumber)
Sets the last episode number.

Parameters:
lastEpisodeNumber - The last episode number.

getRating

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

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

setRating

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

Parameters:
rating - The rating.

getVotes

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

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

setVotes

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

Parameters:
votes - The votes.

getEpisodeRange

public java.lang.String getEpisodeRange()
Returns the episode range.

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

setEpisodeRange

public void setEpisodeRange(java.lang.String episodeRange)
Sets the episode range.

Parameters:
episodeRange - The episode range.

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