Package org.cyclos.model.utils
Class TimeIntervalDTO
- java.lang.Object
-
- org.cyclos.model.Bean
-
- org.cyclos.model.utils.TimeIntervalDTO
-
- All Implemented Interfaces:
Serializable,Comparable<ITimeInterval>,ITimeInterval
public class TimeIntervalDTO extends Bean implements ITimeInterval
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static BasicProperty<Integer,TimeIntervalDTO>AMOUNTstatic StringCLASS_NAMEstatic BasicProperty<TimeField,TimeIntervalDTO>FIELD
-
Constructor Summary
Constructors Constructor Description TimeIntervalDTO()TimeIntervalDTO(Property<T,? super TimeIntervalDTO> property, T value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringclassName()protected List<Property<?,?>>doGetProperties()booleanequals(Object other)IntegergetAmount()TimeFieldgetField()inthashCode()voidsetAmount(Integer amount)voidsetField(TimeField field)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
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.cyclos.model.utils.ITimeInterval
compareTo, getMilliseconds, isValid
-
-
-
-
Field Detail
-
CLASS_NAME
public static final String CLASS_NAME
-
AMOUNT
public static final BasicProperty<Integer,TimeIntervalDTO> AMOUNT
-
FIELD
public static final BasicProperty<TimeField,TimeIntervalDTO> FIELD
-
-
Constructor Detail
-
TimeIntervalDTO
public TimeIntervalDTO()
-
TimeIntervalDTO
public TimeIntervalDTO(Property<T,? super TimeIntervalDTO> property, T value)
-
-
Method Detail
-
doGetProperties
protected List<Property<?,?>> doGetProperties()
- Overrides:
doGetPropertiesin classBean
-
getAmount
public Integer getAmount()
- Specified by:
getAmountin interfaceITimeInterval
-
setAmount
public void setAmount(Integer amount)
-
getField
public TimeField getField()
- Specified by:
getFieldin interfaceITimeInterval
-
setField
public void setField(TimeField field)
-
-