From 760a4fcfac37d751c19e094076b63aa44a312e3c Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Mon, 2 Feb 2015 10:28:21 -0800 Subject: Missed in last commit --- src/github/daneren2005/dsub/domain/PodcastChannel.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src') diff --git a/src/github/daneren2005/dsub/domain/PodcastChannel.java b/src/github/daneren2005/dsub/domain/PodcastChannel.java index bbfd1f50..a1c1617e 100644 --- a/src/github/daneren2005/dsub/domain/PodcastChannel.java +++ b/src/github/daneren2005/dsub/domain/PodcastChannel.java @@ -86,6 +86,19 @@ public class PodcastChannel implements Serializable { public void setErrorMessage(String errorMessage) { this.errorMessage = errorMessage; } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + + PodcastChannel entry = (PodcastChannel) o; + return id.equals(entry.id); + } public static class PodcastComparator implements Comparator { private static String[] ignoredArticles; -- cgit v1.2.3