Back to project page UTMShuttleAndroid.
The source code is released under:
GNU General Public License
If you think the Android project UTMShuttleAndroid listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package classes; /* ww w . ja v a 2 s . co m*/ import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; public class Routes { private Map<Integer, Route> routes; public Routes() { routes = new HashMap<>(); } public List<Integer> getRouteIDs() { return new ArrayList<>(getRoutes().keySet()); } public Map<Integer, Route> getRoutes() { return routes; } public void setRoutes(Map<Integer, Route> routes) { this.routes = routes; } public void addRoute(Route route) { this.routes.put(route.getID(), route); } public Route getRoute(int id) { return getRoutes().get(id); } }