Skip to content

Commit

Permalink
Refactor ActorGson
Browse files Browse the repository at this point in the history
  • Loading branch information
Grzegorz Piwowarek committed Aug 10, 2016
1 parent b2c2057 commit a0b086c
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions gson/src/main/java/org/baeldung/gson/entities/ActorGson.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,18 @@

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;
}
Expand All @@ -38,11 +41,8 @@ public void setFilmography(List<String> filmography) {
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 + "]";
}

}

0 comments on commit a0b086c

Please sign in to comment.