Top Description Fields Constructors Methods
org.javamoney.moneta.convert

public Class ExchangeCurrencyOperator

extends Object
implements MonetaryOperator
Class Inheritance
All Implemented Interfaces
javax.money.MonetaryOperator
Imports
java.util.Objects, javax.money.CurrencyUnit, .MonetaryAmount, .MonetaryOperator

MonetaryOperator class that applies an exchange rate to an amount.

Field Summary

Modifier and TypeField and Description
private final CurrencyUnit
currency

The target currency.

Constructor Summary

AccessConstructor and Description
pack-priv
ExchangeCurrencyOperator(CurrencyUnit
the target currency, not null.
currency
)

Constructor.

Method Summary

Modifier and TypeMethod and Description
public MonetaryAmount
apply(MonetaryAmount amount)

Implements javax.money.MonetaryOperator.apply.

Applies the operator on the given amount.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

currencyback to summary
private final CurrencyUnit currency

The target currency.

Constructor Detail

ExchangeCurrencyOperatorback to summary
pack-priv ExchangeCurrencyOperator(CurrencyUnit currency)

Constructor.

Parameters
currency:CurrencyUnit

the target currency, not null.

Method Detail

applyback to summary
public MonetaryAmount apply(MonetaryAmount amount)

Implements javax.money.MonetaryOperator.apply.

Doc from javax.money.MonetaryOperator.apply.

Applies the operator on the given amount.

Annotations
@Override