Changes in src/main/java/com/wediscussmovies/project/model/Movie.java [c02189f:7f36551] in Git
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/com/wediscussmovies/project/model/Movie.java
rc02189f r7f36551 66 66 } 67 67 68 public Movie(int movieId, String title, Double imdbRating, String imageUrl) {69 this.movieId = movieId;70 this.title = title;71 this.imdbRating = imdbRating;72 this.imageUrl = imageUrl;73 }74 75 public String getDateFormatted(){76 String dob = airingDate.toString();77 String [] parts = dob.split("-");78 return parts[2]+"/"+parts[1]+"/"+parts[0];79 }80 81 68 @Override 82 69 public boolean equals(Object o) {
Note:
See TracChangeset
for help on using the changeset viewer.