diff -r 6fceb66e1ad7 -r 407c428adb5b 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 Tue Apr 27 21:51:12 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;