- java.lang.Object
-
- tvbrowser.core.DuplicateChannelNameCounter
-
public class DuplicateChannelNameCounter extends java.lang.Object
This class returns the number of similar channels in a List of Channels.- Since:
- 2.6
-
-
Constructor Summary
Constructors Constructor Description DuplicateChannelNameCounter(Channel[] channels)
Construct the Counter
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isDuplicate(Channel channel)
Check if a channel is a duplicateboolean
isDuplicateIncludingCountry(Channel channel)
Check if a channel is a duplicate, including the country name
-
-
-
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
-
-