Class TVSeason

java.lang.Object
be.gaudry.model.video.TVSeason

public class TVSeason extends Object
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 Details

    • TVSeason

      public TVSeason()
  • Method Details

    • getEpisodes

      public List<TVEpisode> getEpisodes()
      Returns:
      the episodes
    • getEpisode

      public TVEpisode getEpisode(int index)
      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

      public void addEpisode(TVEpisode episode)
      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

      public void removeSeason(TVEpisode episode)
      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

      public Byte[] getCover()
      Returns:
      the cover
    • setCover

      public void setCover(Byte[] cover)
      Parameters:
      cover - the cover to set
      See Also:
      getCover()