@@ -124,93 +124,97 @@ public Movie() {}
124
124
* Title of the movie.
125
125
* @param originalTitle
126
126
* Original title of the movie.
127
- * @param genres
128
- * List of all genres for the movie.
129
- * @param releaseDate
130
- * Date of release of the movie.
131
- * @param runtime
132
- * Duration of the movie in minute.
133
127
* @param synopsis
134
128
* Synopsis of the movie.
135
129
* @param mainActors
136
130
* Main actors of the movie.
137
- * @param producers
138
- * List of all producers of the movie.
139
131
* @param directors
140
132
* List of all directors of the movie.
133
+ * @param producers
134
+ * List of all producers of the movie.
135
+ * @param genres
136
+ * List of all genres for the movie.
141
137
* @param supports
142
138
* Supports present for the movie.
143
139
* @param languagesSpoken
144
140
* List of languages spoken available on movie.
145
141
* @param subtitles
146
142
* List of subtitle languages available on movie.
143
+ * @param releaseDate
144
+ * Date of release of the movie.
145
+ * @param runtime
146
+ * Duration of the movie in minute.
147
147
* @since 1.0
148
148
* @version 1.0
149
149
*/
150
- public Movie (String title , String originalTitle , List <VideoGenre > genres , Calendar releaseDate , int runtime , String synopsis ,
151
- Set <Actor > mainActors , Set <Producer > producers , Set <Director > directors , List <VideoSupport > supports ,
152
- List <LanguageCode > languagesSpoken , List <LanguageCode > subtitles ) {
153
- super .title = title ;
150
+ public Movie (String title , String originalTitle , String synopsis ,
151
+ Set <Actor > mainActors , Set <Director > directors , Set <Producer > producers ,
152
+ List <VideoGenre > genres , List <VideoSupport > supports ,
153
+ List <LanguageCode > languagesSpoken , List <LanguageCode > subtitles ,
154
+ Calendar releaseDate , int runtime ) {
155
+ super .title = title ;
154
156
super .originalTitle = originalTitle ;
155
- super .genres = genres ;
156
- this .releaseDate = releaseDate ;
157
- this .runtime = runtime ;
158
- super .synopsis = synopsis ;
159
- this .mainActors = mainActors ;
160
- super .supports = supports ;
161
- this .directors = directors ;
162
- this .producers = producers ;
163
- super .subtitles = subtitles ;
157
+ super .synopsis = synopsis ;
158
+ this .mainActors = mainActors ;
159
+ this .directors = directors ;
160
+ this .producers = producers ;
161
+ super .genres = genres ;
162
+ super .supports = supports ;
164
163
super .languagesSpoken = languagesSpoken ;
164
+ super .subtitles = subtitles ;
165
+ this .releaseDate = releaseDate ;
166
+ this .runtime = runtime ;
165
167
}
166
168
167
169
/**
168
170
* Constructor of the movie object.
169
171
* This constructor is used to stored information retrieve from the persistent system.
170
172
*
171
- * @param id
172
- * identifier of the movie.
173
173
* @param title
174
174
* Title of the movie.
175
- * @param genres
176
- * List of all genres of the movie.
177
- * @param releaseDate
178
- * Date of release of the movie.
179
- * @param runtime
180
- * Duration of the movie in minute.
175
+ * @param originalTitle
176
+ * Original title of the movie.
181
177
* @param synopsis
182
178
* Synopsis of the movie.
183
179
* @param mainActors
184
180
* Main actors of the movie.
185
- * @param producers
186
- * List of all producers of the movie.
187
181
* @param directors
188
182
* List of all directors of the movie.
183
+ * @param producers
184
+ * List of all producers of the movie.
185
+ * @param genres
186
+ * List of all genres for the movie.
189
187
* @param supports
190
188
* Supports present for the movie.
191
189
* @param languagesSpoken
192
190
* List of languages spoken available on movie.
193
191
* @param subtitles
194
192
* List of subtitle languages available on movie.
193
+ * @param releaseDate
194
+ * Date of release of the movie.
195
+ * @param runtime
196
+ * Duration of the movie in minute.
195
197
* @since 1.0
196
198
* @version 1.0
197
199
*/
198
- public Movie (long id , String title , String originalTitle , List <VideoGenre > genres , Calendar releaseDate , int runtime , String synopsis ,
199
- Set <Actor > mainActors , Set <Producer > producers , Set <Director > directors , List <VideoSupport > supports ,
200
- List <LanguageCode > languagesSpoken , List <LanguageCode > subtitles ) {
201
- super .id = id ;
202
- super .title = title ;
200
+ public Movie (long id , String title , String originalTitle , String synopsis ,
201
+ Set <Actor > mainActors , Set <Director > directors , Set <Producer > producers ,
202
+ List <VideoGenre > genres , List <VideoSupport > supports ,
203
+ List <LanguageCode > languagesSpoken , List <LanguageCode > subtitles ,
204
+ Calendar releaseDate , int runtime ) {
205
+ super .id = id ;
206
+ super .title = title ;
203
207
super .originalTitle = originalTitle ;
204
- super .genres = genres ;
205
- this .releaseDate = releaseDate ;
206
- this .runtime = runtime ;
207
- super .synopsis = synopsis ;
208
- this .mainActors = mainActors ;
209
- super .supports = supports ;
210
- this .directors = directors ;
211
- this .producers = producers ;
212
- super .subtitles = subtitles ;
208
+ super .synopsis = synopsis ;
209
+ this .mainActors = mainActors ;
210
+ this .directors = directors ;
211
+ this .producers = producers ;
212
+ super .genres = genres ;
213
+ super .supports = supports ;
213
214
super .languagesSpoken = languagesSpoken ;
215
+ super .subtitles = subtitles ;
216
+ this .releaseDate = releaseDate ;
217
+ this .runtime = runtime ;
214
218
}
215
219
216
220
/**
@@ -222,19 +226,19 @@ public Movie(long id, String title, String originalTitle, List<VideoGenre> genre
222
226
* @version 1.0
223
227
*/
224
228
public Movie (Movie movie ) {
225
- super .id = movie .getId ();
226
- super .title = movie .getTitle ();
229
+ super .id = movie .getId ();
230
+ super .title = movie .getTitle ();
227
231
super .originalTitle = movie .getOriginalTitle ();
228
- super .genres = movie .getGenres ();
229
- this .releaseDate = movie .getReleaseDate ();
230
- this .runtime = movie .getRuntime ();
231
- super .synopsis = movie .getSynopsis ();
232
- this .mainActors = movie .getMainActors ();
233
- super .supports = movie .getSupports ();
234
- this .directors = movie .getDirectors ();
235
- this .producers = movie .getProducers ();
236
- super .subtitles = movie .getSubtitles ();
232
+ super .synopsis = movie .getSynopsis ();
233
+ this .mainActors = movie .getMainActors ();
234
+ super .genres = movie .getGenres ();
235
+ super .supports = movie .getSupports ();
236
+ this .directors = movie .getDirectors ();
237
+ this .producers = movie .getProducers ();
237
238
super .languagesSpoken = movie .getLanguagesSpoken ();
239
+ super .subtitles = movie .getSubtitles ();
240
+ this .releaseDate = movie .getReleaseDate ();
241
+ this .runtime = movie .getRuntime ();
238
242
}
239
243
240
244
/**
0 commit comments