- java.lang.Object
-
- tvbrowser.ui.settings.channel.ChannelFilter
-
public class ChannelFilter extends java.lang.Object
Filters for a specific Country, Category and/or Channelname
-
-
Constructor Summary
Constructors Constructor Description ChannelFilter()
Creates an empty FilterChannelFilter(java.lang.String country, int categories, java.lang.String name)
Creates the Filter
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
accept(Channel channel)
void
setFilter(java.lang.String country, int[] categories, java.lang.String name)
Set the Values in the Filtervoid
setFilter(java.lang.String country, int[] categories, java.lang.String name, java.lang.String plugin)
void
setFilter(java.lang.String country, int category, java.lang.String name)
Set the Values in the Filtervoid
setFilter(java.lang.String country, int category, java.lang.String name, java.lang.String plugin)
-
-
-
Constructor Detail
-
ChannelFilter
public ChannelFilter()
Creates an empty Filter
-
ChannelFilter
public ChannelFilter(java.lang.String country, int categories, java.lang.String name)
Creates the Filter- Parameters:
country
- Country to use or NULLcategories
- Category to use, if < 0 don't use category, if MAX_INT don't use categoryname
- Name to search for. This is an "and" Search. Search-Terms are separated by Whitespace
-
-
Method Detail
-
setFilter
public void setFilter(java.lang.String country, int category, java.lang.String name)
Set the Values in the Filter- Parameters:
country
- The country.category
- The category.name
- The name.
-
setFilter
public void setFilter(java.lang.String country, int category, java.lang.String name, java.lang.String plugin)
-
setFilter
public void setFilter(java.lang.String country, int[] categories, java.lang.String name)
Set the Values in the Filter- Parameters:
country
- The country.categories
- The category.name
- The name.
-
setFilter
public void setFilter(java.lang.String country, int[] categories, java.lang.String name, java.lang.String plugin)
-
accept
public boolean accept(Channel channel)
- Parameters:
channel
- Channel to check- Returns:
- True if Channel is accepted by this Filter
-
-