HERE Android SDK Developer's Guide

CategoryFilter

The class CategoryFilter is a member of com.here.android.mpa.search .

Class Summary

public class CategoryFilter

extends java.lang.Object

Represents a filter used when performing a search for popular places within a specific geographic area.

[For complete information, see the section Class Details]

See also:

Category

Category.Global

Constructor Summary

Table 1. Constructors in CategoryFilter
Constructors

CategoryFilter ()

Default constructor.

Method Summary

Table 2. Methods in CategoryFilter
Methods

public CategoryFilter add (Global filter)

Adds a Category.Global to the CategoryFilter .

public CategoryFilter add (Category filter)

Adds a Category (retrieved from the results of a previous request) to the CategoryFilter .

public CategoryFilter add (String filter)

Adds a known category to the CategoryFilter as a String .

public boolean equals (Object obj)

For documentation, see java.lang.Object

public int hashCode ()

For documentation, see java.lang.Object

public String toString ()

Returns a stringified CategoryFilter , within which individual categories are separated by commas.

Class Details

Represents a filter used when performing a search for popular places within a specific geographic area. (This type of search is otherwise known as "explore".) The filter limits search results to the specified categories.

A filter can include one or more of:

  • A Category
  • A Category.Global
  • A String indicating a known category

See also:

Category

Category.Global

Constructor Details

CategoryFilter ()

Default constructor.

Method Details

public CategoryFilter add (Global filter)

Adds a Category.Global to the CategoryFilter .

Parameters:

  • filter

    A Category.Global filter

public CategoryFilter add (Category filter)

Adds a Category (retrieved from the results of a previous request) to the CategoryFilter .

Parameters:

  • filter

    A Category filter

public CategoryFilter add (String filter)

Adds a known category to the CategoryFilter as a String .

Parameters:

  • filter

    A String filter

public boolean equals (Object obj)

For documentation, see java.lang.Object

Parameters:

  • obj

public int hashCode ()

For documentation, see java.lang.Object

public String toString ()

Returns a stringified CategoryFilter , within which individual categories are separated by commas.

Returns:

The stringified CategoryFilter