Refactor ActorGson
This commit is contained in:
parent
b2c2057185
commit
a0b086c4c3
|
@ -5,15 +5,18 @@ import java.util.List;
|
||||||
|
|
||||||
public class ActorGson {
|
public class ActorGson {
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
return "ActorGson [imdbId=" + imdbId + ", dateOfBirth=" + dateOfBirth + ", filmography=" + filmography + "]";
|
|
||||||
}
|
|
||||||
|
|
||||||
private String imdbId;
|
private String imdbId;
|
||||||
private Date dateOfBirth;
|
private Date dateOfBirth;
|
||||||
private List<String> filmography;
|
private List<String> filmography;
|
||||||
|
|
||||||
|
public ActorGson(String imdbId, Date dateOfBirth, List<String> filmography) {
|
||||||
|
super();
|
||||||
|
this.imdbId = imdbId;
|
||||||
|
this.dateOfBirth = dateOfBirth;
|
||||||
|
this.filmography = filmography;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
public String getImdbId() {
|
public String getImdbId() {
|
||||||
return imdbId;
|
return imdbId;
|
||||||
}
|
}
|
||||||
|
@ -38,11 +41,8 @@ public class ActorGson {
|
||||||
this.filmography = filmography;
|
this.filmography = filmography;
|
||||||
}
|
}
|
||||||
|
|
||||||
public ActorGson(String imdbId, Date dateOfBirth, List<String> filmography) {
|
@Override
|
||||||
super();
|
public String toString() {
|
||||||
this.imdbId = imdbId;
|
return "ActorGson [imdbId=" + imdbId + ", dateOfBirth=" + dateOfBirth + ", filmography=" + filmography + "]";
|
||||||
this.dateOfBirth = dateOfBirth;
|
|
||||||
this.filmography = filmography;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue