ServiceFilter

Overview | Package | Class | Use | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## javax.tv.service.navigation
Class ServiceFilter

    java.lang.Object
      javax.tv.service.navigation.ServiceFilter

Direct Known Subclasses:
  LocatorFilter, PreferenceFilter, ServiceTypeFilter, SIElementFilter

    public abstract class ServiceFilter

extends Object

This class represents a set filtering criteria used to generate a `ServiceList`. `ServiceFilter` is extended to create concrete filters based on various criteria. Applications may also extend this class to define custom filters, although custom filters may not be supported on certain filtering operations.

See Also:
  `ServiceList`

Method Summary
`abstract boolean` | `accept(Service service)` Tests if a particular service passes this filter.

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Method Detail

### accept

    public abstract boolean accept(Service service)

  Tests if a particular service passes this filter. Subtypes of `ServiceFilter` override this method to provide the logic for a filtering operation on individual `Service` objects.

  Parameters:
    `service` - A `Service` to be evaluated against the filtering algorithm.
  Returns:
    `true` if `service` satisfies the filtering algorithm; `false` otherwise.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD