diff -r 6fceb66e1ad7 -r 60c237bb677a org/sonews/feed/Subscription.java --- a/org/sonews/feed/Subscription.java Fri Jun 26 16:48:50 2009 +0200 +++ b/org/sonews/feed/Subscription.java Sat May 01 18:51:57 2010 +0200 @@ -40,6 +40,27 @@ this.group = group; } + @Override + public boolean equals(Object obj) + { + if(obj instanceof Subscription) + { + Subscription sub = (Subscription)obj; + return sub.host.equals(host) && sub.group.equals(group) + && sub.port == port && sub.feedtype == feedtype; + } + else + { + return false; + } + } + + @Override + public int hashCode() + { + return host.hashCode() + port + feedtype + group.hashCode(); + } + public int getFeedtype() { return feedtype;