tvbrowser.core
Class DuplicateChannelNameCounter
java.lang.Object
tvbrowser.core.DuplicateChannelNameCounter
public class DuplicateChannelNameCounter
- extends Object
This class returns the number of similar channels in
a List of Channels.
- Since:
- 2.6
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
mChannelNames
Hashtable<String,Integer> mChannelNames
mChannelCountryNames
Hashtable<String,Integer> mChannelCountryNames
DuplicateChannelNameCounter
public DuplicateChannelNameCounter(Channel[] channels)
- Construct the Counter
- Parameters:
channels - use channels in this List
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, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)