Package org.cyclos.entities.utils
Class RatedCurrencyAmount<T>
- java.lang.Object
-
- org.cyclos.entities.utils.CurrencyAmount
-
- org.cyclos.entities.utils.RatedCurrencyAmount<T>
-
- All Implemented Interfaces:
Comparable<CurrencyAmount>,HasCurrency,HasCurrencyAmount,ProcessableForProxying,ICurrencyAmount,HasAmount
public class RatedCurrencyAmount<T> extends CurrencyAmount
A CurrencyAmount representing a set of units with an abstract rate.
-
-
Field Summary
-
Fields inherited from class org.cyclos.entities.utils.CurrencyAmount
COMPARATOR
-
-
Constructor Summary
Constructors Constructor Description RatedCurrencyAmount()RatedCurrencyAmount(BigDecimal amount, T anyRawRate, Currency currency)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DategetDate()BigDecimalgetRate()TgetRawRate()voidsetDate(Date date)voidsetRate(BigDecimal rate)voidsetRawRate(T rawRate)-
Methods inherited from class org.cyclos.entities.utils.CurrencyAmount
abs, compareTo, equals, getAmount, getCurrency, getCurrencyAmount, hashCode, of, setAmount, setCurrency
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.cyclos.entities.banking.HasCurrency
round, withCurrency
-
Methods inherited from interface org.cyclos.entities.ProcessableForProxying
getProxyClass
-
-
-
-
Constructor Detail
-
RatedCurrencyAmount
public RatedCurrencyAmount()
-
RatedCurrencyAmount
public RatedCurrencyAmount(BigDecimal amount, T anyRawRate, Currency currency)
-
-
Method Detail
-
getDate
public Date getDate()
-
getRate
public BigDecimal getRate()
-
getRawRate
public T getRawRate()
-
setDate
public void setDate(Date date)
-
setRate
public void setRate(BigDecimal rate)
-
setRawRate
public void setRawRate(T rawRate)
-
-