1.1 --- a/org/sonews/feed/Subscription.java Fri Jun 26 16:48:50 2009 +0200
1.2 +++ b/org/sonews/feed/Subscription.java Tue Apr 27 21:51:12 2010 +0200
1.3 @@ -40,6 +40,27 @@
1.4 this.group = group;
1.5 }
1.6
1.7 + @Override
1.8 + public boolean equals(Object obj)
1.9 + {
1.10 + if(obj instanceof Subscription)
1.11 + {
1.12 + Subscription sub = (Subscription)obj;
1.13 + return sub.host.equals(host) && sub.group.equals(group)
1.14 + && sub.port == port && sub.feedtype == feedtype;
1.15 + }
1.16 + else
1.17 + {
1.18 + return false;
1.19 + }
1.20 + }
1.21 +
1.22 + @Override
1.23 + public int hashCode()
1.24 + {
1.25 + return host.hashCode() + port + feedtype + group.hashCode();
1.26 + }
1.27 +
1.28 public int getFeedtype()
1.29 {
1.30 return feedtype;