Warning

This feature is available in the Full MapKit SDK version

Package world.mappable.mapkit.search

Class FilterCollection

java.lang.Object
    ↳ world.mappable.mapkit.search.FilterCollection

class FilterCollection implements Serializable

Filters for search request.

Use builder to setup this class.

Nested Class Summary

Modifier and Type

Interface

Description

static

NumberRange

Number range.

Used for range filter.

static

DateRange

Date range.

Dates are encoded as strings in YYYYMMDD format.

Summary

Constructors

Signature and Description

FilterCollection()
Use constructor with parameters in your code.

FilterCollection(@NonNull java.util.List<java.lang.String> booleanFilters,
                 @NonNull java.util.Map<java.lang.String, java.util.List<java.lang.String>> enumFilters,
                 @NonNull java.util.Map<java.lang.String, NumberRange> rangeFilters,
                 @NonNull java.util.Map<java.lang.String, DateRange> dateFilters)

Methods

Type and modifiers

Method and Description

synchronized java.util.List<java.lang.String>

getBooleanFilters()
List of boolean filter ids to be set.

synchronized java.util.Map<java.lang.String, java.util.List<java.lang.String>>

getEnumFilters()
Mapping of enum filter ids to list of enum value ids.

synchronized java.util.Map<java.lang.String, NumberRange>

getRangeFilters()
Mapping of range filter ids to number range.

synchronized java.util.Map<java.lang.String, DateRange>

getDateFilters()
Mapping of date filter ids to date range.

void

serialize(world.mappable.runtime.bindings.Archive archive)

static java.lang.String

getNativeName()

Constuctors

FilterCollection

FilterCollection()

Use constructor with parameters in your code.

This one is for serialization only!


FilterCollection

FilterCollection(@NonNull java.util.List<java.lang.String> booleanFilters,
                 @NonNull java.util.Map<java.lang.String, java.util.List<java.lang.String>> enumFilters,
                 @NonNull java.util.Map<java.lang.String, NumberRange> rangeFilters,
                 @NonNull java.util.Map<java.lang.String, DateRange> dateFilters)


Methods

getBooleanFilters

@NonNull
java.util.List<java.lang.String> getBooleanFilters()

List of boolean filter ids to be set.


getEnumFilters

@NonNull
java.util.Map<java.lang.String, java.util.List<java.lang.String>> getEnumFilters()

Mapping of enum filter ids to list of enum value ids.


getRangeFilters

@NonNull
java.util.Map<java.lang.String, NumberRange> getRangeFilters()

Mapping of range filter ids to number range.


getDateFilters

@NonNull
java.util.Map<java.lang.String, DateRange> getDateFilters()

Mapping of date filter ids to date range.


serialize

@Override
void serialize(world.mappable.runtime.bindings.Archive archive)


getNativeName

java.lang.String getNativeName()