-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMovie.java
51 lines (40 loc) · 1010 Bytes
/
Movie.java
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
package com.recommendations;
public class Movie {
private int movieId;
private String movieName;
private String genres;
private float predictedRating;
public Movie (int mId, String name, String genres, float pRating) {
this.movieId = mId;
this.movieName = name;
this.genres = genres;
this.predictedRating = pRating;
}
public String toString() {
return this.movieId + "::" + this.movieName + "::" + this.genres + "::" + this.predictedRating;
}
public int getMovieId() {
return movieId;
}
public void setMovieId(int movieId) {
this.movieId = movieId;
}
public String getMovieName() {
return movieName;
}
public void setMovieName(String movieName) {
this.movieName = movieName;
}
public String getGenres() {
return genres;
}
public void setGenres(String genres) {
this.genres = genres;
}
public float getPredictedRating() {
return predictedRating;
}
public void setPredictedRating(float predictedRating) {
this.predictedRating = predictedRating;
}
}