Class Movie

java.lang.Object
moblima.entities.Movie

public class Movie extends Object
The type Movie.
  • Constructor Details

    • Movie

      public Movie(int id, String title, String synopsis, String director, List<String> castList, int runtime, LocalDate releaseDate, boolean isBlockbuster, Movie.ShowStatus showStatus, Movie.ContentRating contentRating, double overallRating)
      Instantiates a new Movie.
      Parameters:
      id - the id
      title - the title
      synopsis - the synopsis
      director - the director
      castList - the cast list
      runtime - the runtime
      releaseDate - the release date
      isBlockbuster - the is blockbuster
      showStatus - the show status
      contentRating - the content rating
      overallRating - the overall rating
    • Movie

      public Movie(Movie cloneMovie)
      Instantiates a new Movie.
      Parameters:
      cloneMovie - the clone movie
  • Method Details

    • getId

      public int getId()
      Gets id.
      Returns:
      the id
    • setId

      public void setId(int id)
      Sets id.
      Parameters:
      id - the id
    • getTitle

      public String getTitle()
      Gets title.
      Returns:
      the title
    • setTitle

      public void setTitle(String title)
      Sets title.
      Parameters:
      title - the title
    • getSynopsis

      public String getSynopsis()
      Gets synopsis.
      Returns:
      the synopsis
    • setSynopsis

      public void setSynopsis(String synopsis)
      Sets synopsis.
      Parameters:
      synopsis - the synopsis
    • getDirector

      public String getDirector()
      Gets director.
      Returns:
      the director
    • setDirector

      public void setDirector(String director)
      Sets director.
      Parameters:
      director - the director
    • getCastList

      public List<String> getCastList()
      Gets cast list.
      Returns:
      the cast list
    • setCastList

      public void setCastList(List<String> castList)
      Sets cast list.
      Parameters:
      castList - the cast list
    • getRuntime

      public int getRuntime()
      Gets runtime.
      Returns:
      the runtime
    • setRuntime

      public void setRuntime(int runtime)
      Sets runtime.
      Parameters:
      runtime - the runtime
    • getReleaseDate

      public LocalDate getReleaseDate()
      Gets release date.
      Returns:
      the release date
    • setReleaseDate

      public void setReleaseDate(LocalDate releaseDate)
      Sets release date.
      Parameters:
      releaseDate - the release date
    • isBlockbuster

      public boolean isBlockbuster()
      Is blockbuster boolean.
      Returns:
      the boolean
    • setBlockbuster

      public void setBlockbuster(boolean blockbuster)
      Sets blockbuster.
      Parameters:
      blockbuster - the blockbuster
    • getShowStatus

      public Movie.ShowStatus getShowStatus()
      Gets show status.
      Returns:
      the show status
    • setShowStatus

      public void setShowStatus(Movie.ShowStatus showStatus)
      Sets show status.
      Parameters:
      showStatus - the show status
    • getContentRating

      public Movie.ContentRating getContentRating()
      Gets content rating.
      Returns:
      the content rating
    • setContentRating

      public void setContentRating(Movie.ContentRating contentRating)
      Sets content rating.
      Parameters:
      contentRating - the content rating
    • getOverallRating

      public double getOverallRating()
      Gets overall rating.
      Returns:
      the overall rating
    • setOverallRating

      public void setOverallRating(double overallRating)
      Sets overall rating.
      Parameters:
      overallRating - the overall rating
    • getUrl

      public String getUrl()
      Gets url.
      Returns:
      the url
    • toStringRows

      public List<List<String>> toStringRows(boolean truncate, boolean showOverallRating)
      To string rows list.
      Parameters:
      truncate - the truncate
      showOverallRating - the show overall rating
      Returns:
      the list
    • toString

      public String toString(boolean truncate)
      To string string.
      Parameters:
      truncate - the truncate
      Returns:
      the string
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object