summaryrefslogtreecommitdiff
path: root/vdrmanager
diff options
context:
space:
mode:
authorlado <herrlado@gmail.com>2011-11-13 01:48:03 +0100
committerlado <herrlado@gmail.com>2011-11-13 01:48:03 +0100
commit9baf087e9b6033b365e472e6fdd230283a200774 (patch)
tree717c5c915fddcc1fd5dc010b6b82078df915cc2a /vdrmanager
parent260463100321887f4c36f25e42dcfa8838e3a7fc (diff)
downloadvdr-manager-9baf087e9b6033b365e472e6fdd230283a200774.tar.gz
vdr-manager-9baf087e9b6033b365e472e6fdd230283a200774.tar.bz2
equlas and hashcode
Diffstat (limited to 'vdrmanager')
-rw-r--r--vdrmanager/src/de/bjusystems/vdrmanager/data/Channel.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/vdrmanager/src/de/bjusystems/vdrmanager/data/Channel.java b/vdrmanager/src/de/bjusystems/vdrmanager/data/Channel.java
index bb2ceee..15f8552 100644
--- a/vdrmanager/src/de/bjusystems/vdrmanager/data/Channel.java
+++ b/vdrmanager/src/de/bjusystems/vdrmanager/data/Channel.java
@@ -104,4 +104,17 @@ public class Channel implements Parcelable {
return new Channel[size];
}
};
+
+ public boolean equals(Object o) {
+ if(o instanceof Channel == false){
+ return false;
+ }
+ return number == ((Channel)o).getNumber();
+ };
+
+ @Override
+ public int hashCode() {
+ return number;
+ }
+
}