|
| 1 | +package Entities; |
| 2 | + |
| 3 | +/** |
| 4 | + * Created by liuche on 5/4/17. |
| 5 | + */ |
| 6 | +public class Movie { |
| 7 | + String studio; |
| 8 | + String releaseDate; |
| 9 | + String imdbId; |
| 10 | + Integer runtime; |
| 11 | + String description; |
| 12 | + String language; |
| 13 | + String title; |
| 14 | + Integer version; |
| 15 | + String imageUrl; |
| 16 | + String genre; |
| 17 | + String tagline; |
| 18 | + String lastModified; |
| 19 | + String id; |
| 20 | + String homepage; |
| 21 | + |
| 22 | + public String getStudio() { |
| 23 | + return studio; |
| 24 | + } |
| 25 | + |
| 26 | + public String getReleaseDate() { |
| 27 | + return releaseDate; |
| 28 | + } |
| 29 | + |
| 30 | + public String getImdbId() { |
| 31 | + return imdbId; |
| 32 | + } |
| 33 | + |
| 34 | + public Integer getRuntime() { |
| 35 | + return runtime; |
| 36 | + } |
| 37 | + |
| 38 | + public String getDescription() { |
| 39 | + return description; |
| 40 | + } |
| 41 | + |
| 42 | + public String getLanguage() { |
| 43 | + return language; |
| 44 | + } |
| 45 | + |
| 46 | + public String getTitle() { |
| 47 | + return title; |
| 48 | + } |
| 49 | + |
| 50 | + public Integer getVersion() { |
| 51 | + return version; |
| 52 | + } |
| 53 | + |
| 54 | + public String getImageUrl() { |
| 55 | + return imageUrl; |
| 56 | + } |
| 57 | + |
| 58 | + public String getGenre() { |
| 59 | + return genre; |
| 60 | + } |
| 61 | + |
| 62 | + public String getTagline() { |
| 63 | + return tagline; |
| 64 | + } |
| 65 | + |
| 66 | + public String getLastModified() { |
| 67 | + return lastModified; |
| 68 | + } |
| 69 | + |
| 70 | + public String getId() { |
| 71 | + return id; |
| 72 | + } |
| 73 | + |
| 74 | + public String getHomepage() { |
| 75 | + return homepage; |
| 76 | + } |
| 77 | + |
| 78 | + public void setStudio(String studio) { |
| 79 | + this.studio = studio; |
| 80 | + } |
| 81 | + |
| 82 | + public void setReleaseDate(String releaseDate) { |
| 83 | + this.releaseDate = releaseDate; |
| 84 | + } |
| 85 | + |
| 86 | + public void setImdbId(String imdbId) { |
| 87 | + this.imdbId = imdbId; |
| 88 | + } |
| 89 | + |
| 90 | + public void setRuntime(Integer runtime) { |
| 91 | + this.runtime = runtime; |
| 92 | + } |
| 93 | + |
| 94 | + public void setDescription(String description) { |
| 95 | + this.description = description; |
| 96 | + } |
| 97 | + |
| 98 | + public void setLanguage(String language) { |
| 99 | + this.language = language; |
| 100 | + } |
| 101 | + |
| 102 | + public void setTitle(String title) { |
| 103 | + this.title = title; |
| 104 | + } |
| 105 | + |
| 106 | + public void setVersion(Integer version) { |
| 107 | + this.version = version; |
| 108 | + } |
| 109 | + |
| 110 | + public void setImageUrl(String imageUrl) { |
| 111 | + this.imageUrl = imageUrl; |
| 112 | + } |
| 113 | + |
| 114 | + public void setGenre(String genre) { |
| 115 | + this.genre = genre; |
| 116 | + } |
| 117 | + |
| 118 | + public void setTagline(String tagline) { |
| 119 | + this.tagline = tagline; |
| 120 | + } |
| 121 | + |
| 122 | + public void setLastModified(String lastModified) { |
| 123 | + this.lastModified = lastModified; |
| 124 | + } |
| 125 | + |
| 126 | + public void setId(String id) { |
| 127 | + this.id = id; |
| 128 | + } |
| 129 | + |
| 130 | + public void setHomepage(String homepage) { |
| 131 | + this.homepage = homepage; |
| 132 | + } |
| 133 | + |
| 134 | + @Override |
| 135 | + public boolean equals(Object o) { |
| 136 | + if (this == o) return true; |
| 137 | + if (o == null || getClass() != o.getClass()) return false; |
| 138 | + |
| 139 | + Movie movie = (Movie) o; |
| 140 | + |
| 141 | + if (studio != null ? !studio.equals(movie.studio) : movie.studio != null) return false; |
| 142 | + if (releaseDate != null ? !releaseDate.equals(movie.releaseDate) : movie.releaseDate != null) return false; |
| 143 | + if (imdbId != null ? !imdbId.equals(movie.imdbId) : movie.imdbId != null) return false; |
| 144 | + if (runtime != null ? !runtime.equals(movie.runtime) : movie.runtime != null) return false; |
| 145 | + if (description != null ? !description.equals(movie.description) : movie.description != null) return false; |
| 146 | + if (language != null ? !language.equals(movie.language) : movie.language != null) return false; |
| 147 | + if (title != null ? !title.equals(movie.title) : movie.title != null) return false; |
| 148 | + if (version != null ? !version.equals(movie.version) : movie.version != null) return false; |
| 149 | + if (imageUrl != null ? !imageUrl.equals(movie.imageUrl) : movie.imageUrl != null) return false; |
| 150 | + if (genre != null ? !genre.equals(movie.genre) : movie.genre != null) return false; |
| 151 | + if (tagline != null ? !tagline.equals(movie.tagline) : movie.tagline != null) return false; |
| 152 | + if (lastModified != null ? !lastModified.equals(movie.lastModified) : movie.lastModified != null) return false; |
| 153 | + if (id != null ? !id.equals(movie.id) : movie.id != null) return false; |
| 154 | + return homepage != null ? homepage.equals(movie.homepage) : movie.homepage == null; |
| 155 | + |
| 156 | + } |
| 157 | + |
| 158 | + @Override |
| 159 | + public int hashCode() { |
| 160 | + int result = studio != null ? studio.hashCode() : 0; |
| 161 | + result = 31 * result + (releaseDate != null ? releaseDate.hashCode() : 0); |
| 162 | + result = 31 * result + (imdbId != null ? imdbId.hashCode() : 0); |
| 163 | + result = 31 * result + (runtime != null ? runtime.hashCode() : 0); |
| 164 | + result = 31 * result + (description != null ? description.hashCode() : 0); |
| 165 | + result = 31 * result + (language != null ? language.hashCode() : 0); |
| 166 | + result = 31 * result + (title != null ? title.hashCode() : 0); |
| 167 | + result = 31 * result + (version != null ? version.hashCode() : 0); |
| 168 | + result = 31 * result + (imageUrl != null ? imageUrl.hashCode() : 0); |
| 169 | + result = 31 * result + (genre != null ? genre.hashCode() : 0); |
| 170 | + result = 31 * result + (tagline != null ? tagline.hashCode() : 0); |
| 171 | + result = 31 * result + (lastModified != null ? lastModified.hashCode() : 0); |
| 172 | + result = 31 * result + (id != null ? id.hashCode() : 0); |
| 173 | + result = 31 * result + (homepage != null ? homepage.hashCode() : 0); |
| 174 | + return result; |
| 175 | + } |
| 176 | +} |
0 commit comments