tvbrowser.core

## Class DuplicateChannelNameCounter

- 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 and Description
    `DuplicateChannelNameCounter(Channel[] channels)` Construct the Counter

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `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`

- - ### 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 3.4.3, Copyright (C) 2004-2008 TV-Browser Team (dev@tvbrowser.org)