|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.stanwood.media.model.Season
org.stanwood.media.store.memory.CacheSeason
public class CacheSeason
A cached version of the season object for storing the details in memory
Constructor Summary | |
---|---|
CacheSeason(CacheShow show,
ISeason season)
Used to cache season information |
Method Summary | |
---|---|
void |
addEpisode(IEpisode episode)
Adds a episode to the season |
void |
addSepcial(Episode episode)
Add a special episode too the season |
IEpisode |
getEpisode(int episodeNum)
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 |
int |
getSeasonNumber()
Get the number of the season |
IShow |
getShow()
Get the show the season belongs too |
IEpisode |
getSpecial(int specialNumber)
Used to get a special episode with a given episode number |
java.util.List<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 |
setURL(java.net.URL url)
Sets the episode listing URL for the season |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CacheSeason(CacheShow show, ISeason season)
show
- The cached version of the showseason
- The season to cacheMethod Detail |
---|
public IEpisode getEpisode(int episodeNum)
episodeNum
- The episode number of the episode to fetch
public IEpisode getSpecial(int specialNumber)
specialNumber
- The special episode number of the episode to fetch
public java.util.Collection<IEpisode> getEpisodes()
public void addSepcial(Episode episode)
episode
- The special episode too addpublic java.util.List<IEpisode> getSpecials()
public void addEpisode(IEpisode episode)
episode
- The episode to add to the seasonpublic int getEpisodeCount()
public java.net.URL getURL()
getURL
in interface ISeason
getURL
in class Season
public void setURL(java.net.URL url)
setURL
in interface ISeason
setURL
in class Season
url
- The episode listing URL for the seasonpublic int getSeasonNumber()
getSeasonNumber
in interface ISeason
getSeasonNumber
in class Season
public IShow getShow()
getShow
in interface ISeason
getShow
in class Season
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |