Package moblima.entities
Class Movie
java.lang.Object
moblima.entities.Movie
The type Movie.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe enum Content rating.static enumThe 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 TypeMethodDescriptionbooleanGets cast list.Gets content rating.Gets director.intgetId()Gets id.doubleGets overall rating.Gets release date.intGets runtime.Gets show status.Gets synopsis.getTitle()Gets title.getUrl()Gets url.inthashCode()booleanIs blockbuster boolean.voidsetBlockbuster(boolean blockbuster) Sets blockbuster.voidsetCastList(List<String> castList) Sets cast list.voidsetContentRating(Movie.ContentRating contentRating) Sets content rating.voidsetDirector(String director) Sets director.voidsetId(int id) Sets id.voidsetOverallRating(double overallRating) Sets overall rating.voidsetReleaseDate(LocalDate releaseDate) Sets release date.voidsetRuntime(int runtime) Sets runtime.voidsetShowStatus(Movie.ShowStatus showStatus) Sets show status.voidsetSynopsis(String synopsis) Sets synopsis.voidSets 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()
-