* forgot to add renamed file... ups
This commit is contained in:
parent
bafb33d676
commit
d642a871f7
|
@ -5,13 +5,13 @@ package net.sourceforge.filebot.web;
|
|||
import java.util.Arrays;
|
||||
|
||||
|
||||
public class MovieDescriptor extends SearchResult {
|
||||
public class Movie extends SearchResult {
|
||||
|
||||
protected final int year;
|
||||
protected final int imdbId;
|
||||
|
||||
|
||||
public MovieDescriptor(String name, int year, int imdbId) {
|
||||
public Movie(String name, int year, int imdbId) {
|
||||
super(name);
|
||||
this.year = year;
|
||||
this.imdbId = imdbId;
|
||||
|
@ -30,8 +30,8 @@ public class MovieDescriptor extends SearchResult {
|
|||
|
||||
@Override
|
||||
public boolean equals(Object object) {
|
||||
if (object instanceof MovieDescriptor) {
|
||||
MovieDescriptor other = (MovieDescriptor) object;
|
||||
if (object instanceof Movie) {
|
||||
Movie other = (Movie) object;
|
||||
return imdbId == other.imdbId && year == other.year && name.equals(other.name);
|
||||
}
|
||||
|
Loading…
Reference in New Issue