TV-Browser 2.7.5 API

tvbrowser.core
Class DuplicateChannelNameCounter

java.lang.Object
  extended by tvbrowser.core.DuplicateChannelNameCounter

public class DuplicateChannelNameCounter
extends Object

This class returns the number of similar channels in a List of Channels.

Since:
2.6

Field Summary
(package private)  Hashtable<String,Integer> mChannelCountryNames
           
(package private)  Hashtable<String,Integer> mChannelNames
           
 
Constructor Summary
DuplicateChannelNameCounter(Channel[] channels)
          Construct the Counter
 
Method Summary
 boolean isDuplicate(Channel channel)
          Check if a channel is a duplicate
 boolean isDuplicateIncludingCountry(Channel channel)
          Check if a channel is a duplicate, including the country name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mChannelNames

Hashtable<String,Integer> mChannelNames

mChannelCountryNames

Hashtable<String,Integer> mChannelCountryNames
Constructor Detail

DuplicateChannelNameCounter

public DuplicateChannelNameCounter(Channel[] channels)
Construct the Counter

Parameters:
channels - use channels in this List
Method Detail

isDuplicate

public boolean isDuplicate(Channel channel)
Check if a channel is a duplicate

Parameters:
channel - Channel to check
Returns:
true, if name is a duplicate

isDuplicateIncludingCountry

public boolean isDuplicateIncludingCountry(Channel channel)
Check if a channel is a duplicate, including the country name

Parameters:
channel - Channel to check
Returns:
true, if name is a duplicate

TV-Browser 2.7.5 API

TV-Browser 2.7.5, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)