Package be.gaudry.model.video
Class TVSeason
java.lang.Object
be.gaudry.model.video.TVSeason
Provided by the broldev.file.mediareporter.model project.
- Since:
- 1.0 (Apr 1, 2011), broldev.file.mediareporter.model 0.0.1-SNAPSHOT dependency
- Version:
- 1.0 (Apr 1, 2011)
- Author:
- Steph GAUDRY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addEpisode(TVEpisode episode)
Appends the specified element to the end of this list (optional operation).Byte[]
getCover()
getEpisode(int index)
Returns the TVEpisode at the specified position in the TVEpisodes.void
removeSeason(TVEpisode episode)
Removes the first occurrence of the specified element from this list, if it is present (optional operation).void
-
Constructor Details
-
TVSeason
public TVSeason()
-
-
Method Details
-
getEpisodes
- Returns:
- the episodes
-
getEpisode
Returns the TVEpisode at the specified position in the TVEpisodes.- Parameters:
index
- index of the element to return- Returns:
- the element at the specified position in this list
- Throws:
IndexOutOfBoundsException
- if the index is out of range (index < 0 || index >= size())
-
addEpisode
Appends the specified element to the end of this list (optional operation).- Parameters:
episode
- element to be appended to this list- Throws:
ClassCastException
- if the class of the specified element prevents it from being added to this list- See Also:
getEpisodes()
-
removeSeason
Removes the first occurrence of the specified element from this list, if it is present (optional operation). If this list does not contain the element, it is unchanged. More formally, removes the element with the lowest index i such that (o==null ? get(i)==null : o.equals(get(i))) (if such an element exists). Returns true if this list contained the specified element (or equivalently, if this list changed as a result of the call).- Parameters:
episode
- element to be removed from this list, if present- See Also:
getEpisodes()
-
getCover
- Returns:
- the cover
-
setCover
- Parameters:
cover
- the cover to set- See Also:
getCover()
-