Module tvbrowser

Class 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 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