Важно

This feature is available in the Full MapKit SDK version

Package com.yandex.mapkit.search

Class Component

java.lang.Object
    ↳ com.yandex.mapkit.search.Address.Component

static class Component implements Serializable

Single address component.

Component represents a single entry in the administrative hierarchy of the address.

Nested Class Summary

Modifier and Type

Interface

Description

static final

Kind

An address component kind, for example, large administrative area.

Summary

Constructors

Signature and Description

Component()
Use constructor with parameters in your code.

Component(@NonNull java.lang.String name,
          @NonNull java.util.List<Kind> kinds)

Methods

Type and modifiers

Method and Description

synchronized java.lang.String

getName()
Component name.

synchronized java.util.List<Kind>

getKinds()
Component kinds.

void

serialize(com.yandex.runtime.bindings.Archive archive)

static java.lang.String

getNativeName()

Constuctors

Component

Component()

Use constructor with parameters in your code.

This one is for serialization only!


Component

Component(@NonNull java.lang.String name,
          @NonNull java.util.List<Kind> kinds)


Methods

getName

@NonNull
java.lang.String getName()

Component name.


getKinds

@NonNull
java.util.List<Kind> getKinds()

Component kinds.

May contain both general and specific kind, for example mapkit.search.Address.Component.Kind#STATION and mapkit.search.Address.Component.Kind#METRO_STATION.


serialize

@Override
void serialize(com.yandex.runtime.bindings.Archive archive)


getNativeName

java.lang.String getNativeName()


Предыдущая
Следующая