Class BusinessFilter

com.yandex.mapkit.search

java.lang.Object ⇽ BusinessFilter

public class BusinessFilter

A filter that could be applied to search results.

Filters can be either boolean (i.e. Wi-Fi availability in a cafe) or enumerated (i.e. cuisine type in a restaurant). Enumerated filters support multiple selected values (OR-combined), to search, for example, for restaurants with Armenian or Georgian cuisine at once.

This class is used in two separate ways: a) server response contains all filters applicable to current search request and b) client can use some of these filters to get more specific results in the following search requests

Nested Classes

Constructors

BusinessFilter()

Use constructor with parameters in your code.

BusinessFilter(@NonNull String id, @Nullable String name, @Nullable Boolean disabled, @NonNull Values values)

Methods

synchronized Boolean getDisabled()

The filter should not be used by the client, because filter is either used already (selected:true, disabled:true) or nothing would be found (selected:false, disabled:true).

synchronized String getId()

Filter id.

synchronized String getName()

Human-readable filter name.

String getNativeName()
synchronized Values getValues()

Filter values.

void serialize(Archive archive)

Constructor Detail

BusinessFilter

public BusinessFilter ()

Use constructor with parameters in your code.

This one is for serialization only!

BusinessFilter

public BusinessFilter (@NonNull String id, @Nullable String name, @Nullable Boolean disabled, @NonNull Values values)

Method Detail

getDisabled

public synchronized Boolean getDisabled ()

The filter should not be used by the client, because filter is either used already (selected:true, disabled:true) or nothing would be found (selected:false, disabled:true).

Optional field, can be null.

getId

public synchronized String getId ()

Filter id.

getName

public synchronized String getName ()

Human-readable filter name.

Optional field, can be null.

getNativeName

public static String getNativeName ()

getValues

public synchronized Values getValues ()

Filter values.

serialize

public void serialize (Archive archive)