if (this == o)
return true;
if (!(o instanceof ChannelIF))
return false;
final ChannelIF channel = (ChannelIF) o;
final String channelTitle = channel.getTitle();
if (title != null ? !title.equals(channelTitle) : channelTitle != null)
return false;
// Comparison of links uses synchronized code of Java-NET.
// This may hurt multi-threaded applications. So, please think twice
// before using direct comparison of links.
final URL channelLocation = channel.getLocation();
if (location != null ? channelLocation == null
|| !location.toString().equalsIgnoreCase(channelLocation.toString())
: channelLocation != null)
return false;
final String channelDescription = channel.getDescription();
if (description != null ? !description.equals(channelDescription)
: channelDescription != null)
return false;
return true;