Package moblima.entities
Class Movie
java.lang.Object
moblima.entities.Movie
The type Movie.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
The enum Content rating.static enum
The enum Show status. -
Constructor Summary
ConstructorsConstructorDescriptionMovie
(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.Instantiates a new Movie. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Gets cast list.Gets content rating.Gets director.int
getId()
Gets id.double
Gets overall rating.Gets release date.int
Gets runtime.Gets show status.Gets synopsis.getTitle()
Gets title.getUrl()
Gets url.int
hashCode()
boolean
Is blockbuster boolean.void
setBlockbuster
(boolean blockbuster) Sets blockbuster.void
setCastList
(List<String> castList) Sets cast list.void
setContentRating
(Movie.ContentRating contentRating) Sets content rating.void
setDirector
(String director) Sets director.void
setId
(int id) Sets id.void
setOverallRating
(double overallRating) Sets overall rating.void
setReleaseDate
(LocalDate releaseDate) Sets release date.void
setRuntime
(int runtime) Sets runtime.void
setShowStatus
(Movie.ShowStatus showStatus) Sets show status.void
setSynopsis
(String synopsis) Sets synopsis.void
Sets title.toString()
toString
(boolean truncate) To string string.toStringRows
(boolean truncate, boolean showOverallRating) To string rows list.
-
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 idtitle
- the titlesynopsis
- the synopsisdirector
- the directorcastList
- the cast listruntime
- the runtimereleaseDate
- the release dateisBlockbuster
- the is blockbustershowStatus
- the show statuscontentRating
- the content ratingoverallRating
- the overall rating
-
Movie
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
Gets title.- Returns:
- the title
-
setTitle
Sets title.- Parameters:
title
- the title
-
getSynopsis
Gets synopsis.- Returns:
- the synopsis
-
setSynopsis
Sets synopsis.- Parameters:
synopsis
- the synopsis
-
getDirector
Gets director.- Returns:
- the director
-
setDirector
Sets director.- Parameters:
director
- the director
-
getCastList
Gets cast list.- Returns:
- the cast list
-
setCastList
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
Gets release date.- Returns:
- the release date
-
setReleaseDate
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
Gets show status.- Returns:
- the show status
-
setShowStatus
Sets show status.- Parameters:
showStatus
- the show status
-
getContentRating
Gets content rating.- Returns:
- the content rating
-
setContentRating
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
Gets url.- Returns:
- the url
-
toStringRows
To string rows list.- Parameters:
truncate
- the truncateshowOverallRating
- the show overall rating- Returns:
- the list
-
toString
To string string.- Parameters:
truncate
- the truncate- Returns:
- the string
-
toString
-
equals
-
hashCode
public int hashCode()
-