diff options
author | lado <herrlado@gmail.com> | 2011-11-13 01:48:03 +0100 |
---|---|---|
committer | lado <herrlado@gmail.com> | 2011-11-13 01:48:03 +0100 |
commit | 9baf087e9b6033b365e472e6fdd230283a200774 (patch) | |
tree | 717c5c915fddcc1fd5dc010b6b82078df915cc2a /vdrmanager/src | |
parent | 260463100321887f4c36f25e42dcfa8838e3a7fc (diff) | |
download | vdr-manager-9baf087e9b6033b365e472e6fdd230283a200774.tar.gz vdr-manager-9baf087e9b6033b365e472e6fdd230283a200774.tar.bz2 |
equlas and hashcode
Diffstat (limited to 'vdrmanager/src')
-rw-r--r-- | vdrmanager/src/de/bjusystems/vdrmanager/data/Channel.java | 13 |
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; + } + } |