Refactor ActorGson

This commit is contained in:
Grzegorz Piwowarek 2016-08-10 18:54:56 +02:00
parent b2c2057185
commit a0b086c4c3
1 changed files with 11 additions and 11 deletions

View File

@ -5,15 +5,18 @@ import java.util.List;
public class ActorGson {
@Override
public String toString() {
return "ActorGson [imdbId=" + imdbId + ", dateOfBirth=" + dateOfBirth + ", filmography=" + filmography + "]";
}
private String imdbId;
private Date dateOfBirth;
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() {
return imdbId;
}
@ -38,11 +41,8 @@ public class ActorGson {
this.filmography = filmography;
}
public ActorGson(String imdbId, Date dateOfBirth, List<String> filmography) {
super();
this.imdbId = imdbId;
this.dateOfBirth = dateOfBirth;
this.filmography = filmography;
@Override
public String toString() {
return "ActorGson [imdbId=" + imdbId + ", dateOfBirth=" + dateOfBirth + ", filmography=" + filmography + "]";
}
}