[ADD] route class fields and getters / setters
This commit is contained in:
@@ -1,4 +1,42 @@
|
||||
package com.a1.nextlocation.data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class Route {
|
||||
private String name;
|
||||
private List<Location> locations;
|
||||
private float totalDistance;
|
||||
private int totalTime;
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public List<Location> getLocations() {
|
||||
return locations;
|
||||
}
|
||||
|
||||
public void setLocations(List<Location> locations) {
|
||||
this.locations = locations;
|
||||
}
|
||||
|
||||
public float getTotalDistance() {
|
||||
return totalDistance;
|
||||
}
|
||||
|
||||
public void setTotalDistance(float totalDistance) {
|
||||
this.totalDistance = totalDistance;
|
||||
}
|
||||
|
||||
public int getTotalTime() {
|
||||
return totalTime;
|
||||
}
|
||||
|
||||
public void setTotalTime(int totalTime) {
|
||||
this.totalTime = totalTime;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user