ars.module.location.model.Route Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ars-module-location Show documentation
Show all versions of ars-module-location Show documentation
Ars framework module location
package ars.module.location.model;
import ars.module.location.model.Address;
import ars.database.model.AbstractModel;
/**
* 线路数据模型
*
* @author yongqiangwu
*
*/
public class Route extends AbstractModel {
private static final long serialVersionUID = 1L;
private Route next; // 下一个地点
private Address address; // 所在地址
public Route getNext() {
return next;
}
public void setNext(Route next) {
this.next = next;
}
public Address getAddress() {
return address;
}
public void setAddress(Address address) {
this.address = address;
}
@Override
public String toString() {
if (this.address == null) {
return super.toString();
}
StringBuilder name = new StringBuilder(this.address.toString());
return this.next == null ? name.toString() : name.append("->").append(this.next.toString()).toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy