You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
89 lines
1.8 KiB
89 lines
1.8 KiB
public class Movie {
|
|
private String title;
|
|
private int year;
|
|
private double rating;
|
|
private String genre;
|
|
private String director;
|
|
private String actors;
|
|
private String synopsis;
|
|
|
|
public Movie() {
|
|
}
|
|
|
|
public Movie(String title, int year, double rating, String genre, String director, String actors, String synopsis) {
|
|
this.title = title;
|
|
this.year = year;
|
|
this.rating = rating;
|
|
this.genre = genre;
|
|
this.director = director;
|
|
this.actors = actors;
|
|
this.synopsis = synopsis;
|
|
}
|
|
|
|
public String getTitle() {
|
|
return title;
|
|
}
|
|
|
|
public void setTitle(String title) {
|
|
this.title = title;
|
|
}
|
|
|
|
public int getYear() {
|
|
return year;
|
|
}
|
|
|
|
public void setYear(int year) {
|
|
this.year = year;
|
|
}
|
|
|
|
public double getRating() {
|
|
return rating;
|
|
}
|
|
|
|
public void setRating(double rating) {
|
|
this.rating = rating;
|
|
}
|
|
|
|
public String getGenre() {
|
|
return genre;
|
|
}
|
|
|
|
public void setGenre(String genre) {
|
|
this.genre = genre;
|
|
}
|
|
|
|
public String getDirector() {
|
|
return director;
|
|
}
|
|
|
|
public void setDirector(String director) {
|
|
this.director = director;
|
|
}
|
|
|
|
public String getActors() {
|
|
return actors;
|
|
}
|
|
|
|
public void setActors(String actors) {
|
|
this.actors = actors;
|
|
}
|
|
|
|
public String getSynopsis() {
|
|
return synopsis;
|
|
}
|
|
|
|
public void setSynopsis(String synopsis) {
|
|
this.synopsis = synopsis;
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
return "Movie{" +
|
|
"title='" + title + '\'' +
|
|
", year=" + year +
|
|
", rating=" + rating +
|
|
", genre='" + genre + '\'' +
|
|
", director='" + director + '\'' +
|
|
"}";
|
|
}
|
|
}
|
|
|