Package org.cyclos.model.utils
Class FileSizeDTO
- java.lang.Object
-
- org.cyclos.model.Bean
-
- org.cyclos.model.utils.FileSizeDTO
-
- All Implemented Interfaces:
Serializable,IFileSize
public class FileSizeDTO extends Bean implements IFileSize
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringCLASS_NAMEstatic BasicProperty<Integer,FileSizeDTO>SIZEstatic BasicProperty<FileSizeUnit,FileSizeDTO>UNIT
-
Constructor Summary
Constructors Constructor Description FileSizeDTO()FileSizeDTO(Property<T,? super FileSizeDTO> property, T value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringclassName()protected List<Property<?,?>>doGetProperties()booleanequals(Object other)IntegergetSize()FileSizeUnitgetUnit()inthashCode()voidsetSize(Integer size)voidsetUnit(FileSizeUnit unit)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
-
SIZE
public static final BasicProperty<Integer,FileSizeDTO> SIZE
-
UNIT
public static final BasicProperty<FileSizeUnit,FileSizeDTO> UNIT
-
-
Constructor Detail
-
FileSizeDTO
public FileSizeDTO()
-
FileSizeDTO
public FileSizeDTO(Property<T,? super FileSizeDTO> property, T value)
-
-
Method Detail
-
doGetProperties
protected List<Property<?,?>> doGetProperties()
- Overrides:
doGetPropertiesin classBean
-
setSize
public void setSize(Integer size)
-
getUnit
public FileSizeUnit getUnit()
-
setUnit
public void setUnit(FileSizeUnit unit)
-
-