public final class ServiceTypeFilter extends ServiceFilter
ServiceTypeFilter represents a
ServiceFilter based on a particular
ServiceType. A ServiceList resulting
from this filter will include only Service objects of
the specified service type.ServiceType,
ServiceList| Constructor and Description |
|---|
ServiceTypeFilter(ServiceType type)
Constructs the filter based on a particular
ServiceType. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(Service service)
Tests if the given service passes the filter.
|
ServiceType |
getFilterValue()
Reports the
ServiceType used to create this filter. |
public ServiceTypeFilter(ServiceType type)
ServiceType.type - A ServiceType object indicating the type
of services to be included in a resulting service list.public ServiceType getFilterValue()
ServiceType used to create this filter.ServiceType used to create this filter.public boolean accept(Service service)
accept in class ServiceFilterservice - An individual Service to be evaluated
against the filtering algorithm.true if service is of the type
indicated by the filter value; false otherwise.Copyright © 2012 code4tv.com. All Rights Reserved.