Constructor and Description |
---|
CacheSeason(CacheShow show,
ISeason season)
Used to cache season information
|
Modifier and Type | Method and Description |
---|---|
void |
addEpisode(IEpisode episode)
Adds a episode to the season
|
void |
addSepcial(Episode episode)
Add a special episode too the season
|
boolean |
equals(java.lang.Object o) |
IEpisode |
getEpisode(java.util.List<java.lang.Integer> episodeNums)
Used to get a episode with a given episode number
|
int |
getEpisodeCount()
Gets the number of episode's in the season
|
java.util.Collection<IEpisode> |
getEpisodes()
Get all the episodes in the season
|
java.net.URL |
getImageURL()
Used to get a URL which points too a image of the season
|
int |
getSeasonNumber()
Get the number of the season
|
IShow |
getShow()
Get the show the season belongs too
|
IEpisode |
getSpecial(java.util.List<java.lang.Integer> specialNums)
Used to get a special episode with a given episode number
|
java.util.Collection<IEpisode> |
getSpecials()
Get all the special episodes in the season
|
java.net.URL |
getURL()
Used to get the episode listing URL for the season
|
void |
setImageURL(java.net.URL imageURL)
Used to set a URL which points too a image of the season
|
void |
setURL(java.net.URL url)
Sets the episode listing URL for the season
|
setSeasonNumber, setShow
public IEpisode getEpisode(java.util.List<java.lang.Integer> episodeNums)
episodeNums
- The episode numbers of the episode to fetchpublic IEpisode getSpecial(java.util.List<java.lang.Integer> specialNums)
specialNums
- The special episode numbers of the episode to fetchpublic java.util.Collection<IEpisode> getEpisodes()
public void addSepcial(Episode episode)
episode
- The special episode too addpublic java.util.Collection<IEpisode> getSpecials()
public void addEpisode(IEpisode episode)
episode
- The episode to add to the seasonpublic int getEpisodeCount()
public java.net.URL getURL()
public void setURL(java.net.URL url)
public int getSeasonNumber()
getSeasonNumber
in interface ISeason
getSeasonNumber
in class Season
public IShow getShow()
public java.net.URL getImageURL()
getImageURL
in interface ISeason
getImageURL
in class Season
public void setImageURL(java.net.URL imageURL)
setImageURL
in interface ISeason
setImageURL
in class Season
imageURL
- A URL which points too a image of the seasonpublic boolean equals(java.lang.Object o)
equals
in class java.lang.Object