Package org.cyclos.model.utils
Class DecimalRangeDTO
- java.lang.Object
-
- org.cyclos.model.Bean
-
- org.cyclos.model.utils.DecimalRangeDTO
-
- All Implemented Interfaces:
Serializable,IDecimalRange,Range<BigDecimal>
- Direct Known Subclasses:
CurrencyAmountRangeDTO
public class DecimalRangeDTO extends Bean implements IDecimalRange
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringCLASS_NAMEstatic BasicProperty<BigDecimal,DecimalRangeDTO>MAXstatic BasicProperty<BigDecimal,DecimalRangeDTO>MIN
-
Constructor Summary
Constructors Constructor Description DecimalRangeDTO()DecimalRangeDTO(Property<T,? super DecimalRangeDTO> property, T value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringclassName()protected List<Property<?,?>>doGetProperties()booleanequals(Object other)BigDecimalgetMax()BigDecimalgetMin()inthashCode()voidsetMax(BigDecimal max)voidsetMin(BigDecimal min)StringtoString()-
Methods inherited from class org.cyclos.model.Bean
addPropertyChangeListener, addPropertyChangeListener, attributeNames, backup, changes, clearAttributes, copyPropertiesTo, copyPropertiesTo, copyPropertiesTo, dataAccessor, firePropertyChange, get, getAttribute, initDataAccessor, properties, property, propertyMap, removeAttribute, removePropertyChangeListener, removePropertyChangeListener, restore, set, set, setAttribute, setWithPropagationId, values
-
-
-
-
Field Detail
-
CLASS_NAME
public static final String CLASS_NAME
-
MAX
public static final BasicProperty<BigDecimal,DecimalRangeDTO> MAX
-
MIN
public static final BasicProperty<BigDecimal,DecimalRangeDTO> MIN
-
-
Constructor Detail
-
DecimalRangeDTO
public DecimalRangeDTO()
-
DecimalRangeDTO
public DecimalRangeDTO(Property<T,? super DecimalRangeDTO> property, T value)
-
-
Method Detail
-
doGetProperties
protected List<Property<?,?>> doGetProperties()
- Overrides:
doGetPropertiesin classBean
-
getMax
public BigDecimal getMax()
- Specified by:
getMaxin interfaceRange<BigDecimal>
-
setMax
public void setMax(BigDecimal max)
-
getMin
public BigDecimal getMin()
- Specified by:
getMinin interfaceRange<BigDecimal>
-
setMin
public void setMin(BigDecimal min)
-
-