diff -r 4b2c8bedb094 -r 2541bdb54cb2 org/sonews/feed/Subscription.java --- a/org/sonews/feed/Subscription.java Mon Aug 24 14:40:37 2009 +0200 +++ b/org/sonews/feed/Subscription.java Wed Aug 26 10:47:51 2009 +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;