Package elements
Class ItemFilm
java.lang.Object
elements.Item
elements.ItemFilm
Represents a film item in the social network. Inherits from the Item class.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the director of the film.int
Gets the duration of the film.Gets the scenarist of the film.toString()
Returns a string representation of the film item.Methods inherited from class elements.Item
addReview, equals, getKind, getMeanReviews, getReviews, getTitle, nbReviews
-
Constructor Details
-
ItemFilm
public ItemFilm(String title, String kind, String director, String scenarist, int duration) throws exceptions.BadEntryException Constructs a new ItemFilm with the specified title, kind, director, scenarist, and duration.- Parameters:
title
- the title of the filmkind
- the kind or genre of the filmdirector
- the director of the filmscenarist
- the scenarist of the filmduration
- the duration of the film in minutes- Throws:
exceptions.BadEntryException
- if any of the parameters are invalid
-
-
Method Details
-
getDirector
-
getScenarist
-
getDuration
public int getDuration()Gets the duration of the film.- Returns:
- the duration of the film in minutes
-
toString
-