Class Sort

com.yandex.mapkit.search

java.lang.Object ⇽ Sort

public class Sort

Describes response sort.

Constructors

Sort(@NonNull SortType type, @Nullable SortOrigin origin)
Sort()

Use constructor with parameters in your code.

Methods

SortOrigin getOrigin()

Sort origin (if results are ordered by distance).

SortType getType()

Sorting type.

void serialize(Archive archive)

Constructor Detail

Sort

public Sort (@NonNull SortType type, @Nullable SortOrigin origin)

Sort

public Sort ()

Use constructor with parameters in your code.

This one is for bindings only!

Method Detail

getOrigin

public SortOrigin getOrigin ()

Sort origin (if results are ordered by distance).

Optional field, can be null.

getType

public SortType getType ()

Sorting type.

serialize

public void serialize (Archive archive)