Android Open Source - UTMShuttleAndroid Routes






From Project

Back to project page UTMShuttleAndroid.

License

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.

Java Source Code

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);
    }

}




Java Source Code List

activities.MainActivity.java
adapters.TimesListAdapter.java
async.NoticesTask.java
async.RoutesTask.java
classes.Route.java
classes.Routes.java
global.App.java
util.NetworkHelper.java
util.Scraper.java