Package org.cyclos.model.utils
Class DistanceDTO
- java.lang.Object
-
- org.cyclos.model.Bean
-
- org.cyclos.model.utils.DistanceDTO
-
- All Implemented Interfaces:
Serializable
public class DistanceDTO extends Bean
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringCLASS_NAMEstatic BasicProperty<BigDecimal,DistanceDTO>DISTANCEstatic BasicProperty<LatLongDTO,DistanceDTO>LOCATION
-
Constructor Summary
Constructors Constructor Description DistanceDTO()DistanceDTO(Property<T,? super DistanceDTO> property, T value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringclassName()protected List<Property<?,?>>doGetProperties()booleanequals(Object other)BigDecimalgetDistance()LatLongDTOgetLocation()inthashCode()voidsetDistance(BigDecimal distance)voidsetLocation(LatLongDTO location)-
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
-
DISTANCE
public static final BasicProperty<BigDecimal,DistanceDTO> DISTANCE
-
LOCATION
public static final BasicProperty<LatLongDTO,DistanceDTO> LOCATION
-
-
Constructor Detail
-
DistanceDTO
public DistanceDTO()
-
DistanceDTO
public DistanceDTO(Property<T,? super DistanceDTO> property, T value)
-
-
Method Detail
-
doGetProperties
protected List<Property<?,?>> doGetProperties()
- Overrides:
doGetPropertiesin classBean
-
getDistance
public BigDecimal getDistance()
-
setDistance
public void setDistance(BigDecimal distance)
-
getLocation
public LatLongDTO getLocation()
-
setLocation
public void setLocation(LatLongDTO location)
-
-