-
Notifications
You must be signed in to change notification settings - Fork 43
Expand file tree
/
Copy pathMovie.java
More file actions
72 lines (57 loc) · 1.57 KB
/
Movie.java
File metadata and controls
72 lines (57 loc) · 1.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
package models;
public class Movie {
Integer id;
String title;
Integer runtime;
Integer imdbscore;
Integer releaseyear;
public Movie(String title, Integer runtime, Integer imdbscore, Integer releaseyear){
this.title = title;
this.runtime = runtime;
this.imdbscore = imdbscore;
this.releaseyear = releaseyear;
}
public Movie(Integer id, String title, Integer runtime, Integer imdbscore, Integer releaseyear){
this.id = id;
this.title = title;
this.runtime = runtime;
this.imdbscore = imdbscore;
this.releaseyear = releaseyear;
}
public Movie(){}
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public Integer getRuntime() {
return runtime;
}
public void setRuntime(Integer runtime) {
this.runtime = runtime;
}
public Integer getImdbscore() {
return imdbscore;
}
public void setImdbscore(Integer imdbscore) {
this.imdbscore = imdbscore;
}
public Integer getReleaseyear() {
return releaseyear;
}
public void setReleaseyear(Integer releaseyear) {
this.releaseyear = releaseyear;
}
@Override
public String toString(){
return String.format("%s | %s | %s | %s",
this.getTitle(), this.getRuntime(), this.getImdbscore(), this.getReleaseyear());
}
}