Class CurrencyExchangeType

com.yandex.mapkit.search

java.lang.Object ⇽ CurrencyExchangeType

public class CurrencyExchangeType

Single currency exchange prices.

Constructors

CurrencyExchangeType()

Use constructor with parameters in your code.

CurrencyExchangeType(@Nullable String name, @Nullable Money buy, @Nullable Money sell)

Methods

synchronized Money getBuy()

Buy rate.

synchronized String getName()

ISO-4217 currency name, e.g.

String getNativeName()
synchronized Money getSell()

Sell rate.

void serialize(Archive archive)

Constructor Detail

CurrencyExchangeType

public CurrencyExchangeType ()

Use constructor with parameters in your code.

This one is for serialization only!

CurrencyExchangeType

public CurrencyExchangeType (@Nullable String name, @Nullable Money buy, @Nullable Money sell)

Method Detail

getBuy

public synchronized Money getBuy ()

Buy rate.

Optional field, can be null.

getName

public synchronized String getName ()

ISO-4217 currency name, e.g.

"USD" or "RUB" or "EUR".Optional field, can be null.

getNativeName

public static String getNativeName ()

getSell

public synchronized Money getSell ()

Sell rate.

Optional field, can be null.

serialize

public void serialize (Archive archive)