Class KeyValuePair

com.yandex.mapkit.search

java.lang.Object ⇽ KeyValuePair

public class KeyValuePair

Universal key-value data.

Constructors

KeyValuePair(@NonNull String key, @NonNull String value)
KeyValuePair()

Use constructor with parameters in your code.

Methods

String getKey()

Data key.

String getValue()

Data value.

void serialize(Archive archive)

Constructor Detail

KeyValuePair

public KeyValuePair (@NonNull String key, @NonNull String value)

KeyValuePair

public KeyValuePair ()

Use constructor with parameters in your code.

This one is for bindings only!

Method Detail

getKey

public String getKey ()

Data key.

For example, "currency".

getValue

public String getValue ()

Data value.

For example, "USD".

serialize

public void serialize (Archive archive)