Package sources.models
Class Movie
java.lang.Object
sources.models.Movie
- All Implemented Interfaces:
Comparable<Movie>
-
Constructor Summary
ConstructorsConstructorDescriptionMovie(Integer id, String name, Coordinates coordinates, long oscarsCount, MovieGenre genre, MpaaRating mpaaRating, Person director) Movie(String name, Coordinates coordinates, long oscarsCount, MovieGenre genre, MpaaRating mpaaRating, Person director) -
Method Summary
Modifier and TypeMethodDescriptionintgetGenre()getID()getName()longvoidsetCoordinates(Coordinates coordinates) voidsetCreationDate(ZonedDateTime creationDate) voidsetDirector(Person director) voidsetGenre(MovieGenre genre) voidsetID()voidsetMpaaRating(MpaaRating mpaaRating) voidvoidsetOscarsCount(long oscarsCount) toString()static voidupdateNextId(MovieCollection movieCollection)
-
Constructor Details
-
Movie
public Movie(String name, Coordinates coordinates, long oscarsCount, MovieGenre genre, MpaaRating mpaaRating, Person director) throws WrongArgumentException - Throws:
WrongArgumentException
-
Movie
public Movie(Integer id, String name, Coordinates coordinates, long oscarsCount, MovieGenre genre, MpaaRating mpaaRating, Person director) throws WrongArgumentException - Throws:
WrongArgumentException
-
-
Method Details
-
updateNextId
-
getID
-
setID
public void setID() -
getName
-
setName
- Throws:
WrongArgumentException
-
getCoordinates
-
setCoordinates
- Throws:
WrongArgumentException
-
getCreationDate
-
setCreationDate
-
getOscarsCount
public long getOscarsCount() -
setOscarsCount
- Throws:
WrongArgumentException
-
getGenre
-
setGenre
- Throws:
WrongArgumentException
-
getMpaaRating
-
setMpaaRating
- Throws:
WrongArgumentException
-
getDirector
-
setDirector
- Throws:
WrongArgumentException
-
compareTo
- Specified by:
compareToin interfaceComparable<Movie>
-
toString
-