Package org.cyclos.entities.utils
Class CurrencyAmountRange
- java.lang.Object
-
- org.cyclos.entities.utils.CurrencyAmountRange
-
- All Implemented Interfaces:
Cloneable,HasCurrency,ProcessableForProxying,ICurrencyAmountRange,IDecimalRange,Range<BigDecimal>
@Embeddable public class CurrencyAmountRange extends Object implements Cloneable, ICurrencyAmountRange, HasCurrency, ProcessableForProxying
Contains currency and a min/max amount
-
-
Constructor Summary
Constructors Constructor Description CurrencyAmountRange()CurrencyAmountRange(Currency currency, BigDecimal min, BigDecimal max)CurrencyAmountRange(Currency currency, IDecimalRange range)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CurrencyAmountRangeclone()CurrencygetCurrency()BigDecimalgetMax()BigDecimalgetMin()booleanisEmpty()voidsetCurrency(Currency currency)voidsetMax(BigDecimal max)voidsetMin(BigDecimal min)-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, 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
-
CurrencyAmountRange
public CurrencyAmountRange()
-
CurrencyAmountRange
public CurrencyAmountRange(Currency currency, BigDecimal min, BigDecimal max)
-
CurrencyAmountRange
public CurrencyAmountRange(Currency currency, IDecimalRange range)
-
-
Method Detail
-
clone
public CurrencyAmountRange clone()
-
getCurrency
public Currency getCurrency()
- Specified by:
getCurrencyin interfaceHasCurrency- Specified by:
getCurrencyin interfaceICurrencyAmountRange
-
getMax
public BigDecimal getMax()
- Specified by:
getMaxin interfaceRange<BigDecimal>
-
getMin
public BigDecimal getMin()
- Specified by:
getMinin interfaceRange<BigDecimal>
-
isEmpty
public boolean isEmpty()
-
setCurrency
public void setCurrency(Currency currency)
-
setMax
public void setMax(BigDecimal max)
-
setMin
public void setMin(BigDecimal min)
-
-