Package org.cyclos.entities.utils
Class DecimalRange
- java.lang.Object
-
- org.cyclos.entities.utils.DecimalRange
-
- All Implemented Interfaces:
Cloneable,IDecimalRange,Range<BigDecimal>
@Embeddable public class DecimalRange extends Object implements Cloneable, IDecimalRange
Represents a price range
-
-
Constructor Summary
Constructors Constructor Description DecimalRange()DecimalRange(BigDecimal min, BigDecimal max)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DecimalRangeclone()booleanequals(Object obj)BigDecimalgetMax()BigDecimalgetMin()inthashCode()booleanisEmpty()voidsetMax(BigDecimal max)voidsetMin(BigDecimal min)
-
-
-
Constructor Detail
-
DecimalRange
public DecimalRange()
-
DecimalRange
public DecimalRange(BigDecimal min, BigDecimal max)
-
-
Method Detail
-
clone
public DecimalRange clone()
-
getMax
public BigDecimal getMax()
- Specified by:
getMaxin interfaceRange<BigDecimal>
-
getMin
public BigDecimal getMin()
- Specified by:
getMinin interfaceRange<BigDecimal>
-
isEmpty
public boolean isEmpty()
-
setMax
public void setMax(BigDecimal max)
-
setMin
public void setMin(BigDecimal min)
-
-