net.anidb
Class EpisodeType

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

public class EpisodeType
extends java.lang.Object

The type of an episode.

Version:
1.0, 31.12.2009
Author:
grizzlyxp (http://anidb.net/perl-bin/animedb.pl?show=userpage&uid=63935)
See Also:
Episode.getEpisodeNumber(), Episode.setEpisodeNumber(String)

Field Summary
static EpisodeType CREDITS
          Credits.
static EpisodeType OTHER
          Other.
static EpisodeType PARODY
          Parody.
static EpisodeType SPECIAL
          Special.
static EpisodeType TRAILER
          Trailer.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
static EpisodeType getInstance(char value)
          Returns an instance of the class for the given value.
static EpisodeType getInstance(java.lang.String episodeNumber)
          Returns an instance of the class for the given episode number.
 char getValue()
          Returns the value.
 int hashCode()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SPECIAL

public static final EpisodeType SPECIAL
Special.


CREDITS

public static final EpisodeType CREDITS
Credits.


TRAILER

public static final EpisodeType TRAILER
Trailer.


PARODY

public static final EpisodeType PARODY
Parody.


OTHER

public static final EpisodeType OTHER
Other.

Method Detail

getInstance

public static EpisodeType getInstance(char value)
Returns an instance of the class for the given value.

Parameters:
value - The value.
Returns:
The instance of null, if there is no instance for the given value.

getInstance

public static EpisodeType getInstance(java.lang.String episodeNumber)
Returns an instance of the class for the given episode number.

Parameters:
episodeNumber - The episode number.
Returns:
The instance of null, if there is no instance for the episode number or the episode number is null or an empty String.

getValue

public char getValue()
Returns the value.

Returns:
The value.

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