summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
+ }
+
}