Back to project page Realtime-Port-Authority.
The source code is released under:
Apache License
If you think the Android project Realtime-Port-Authority 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 rectangledbmi.com.pittsburghrealtimetracker.world; //from w w w. j a v a 2s.com import java.util.HashMap; import java.util.Map; import java.util.concurrent.ExecutionException; import java.util.logging.Handler; import rectangledbmi.com.pittsburghrealtimetracker.handlers.RequestRoutes; */ /** * Singleton class to store my dynamic static variables. * * Singleton class is ok because everytime the Globals is reset, * * Created by epicstar on 9/5/14. *//* public class Globals { private static Globals instance; private Map<String, Route> routes; private Map<String, TransitStop> stops; private Map<String, Bus> buses; public Globals() { stops = null; routes = null; buses = null; setWorld(); } public Map<String, TransitStop> getStops() { return stops; } public Map<String, Bus> getBuses() { return buses; } public Map<String, Route> getRoutes() { return routes; } public void setRoutes() { } public void setBuses() { if(buses == null) { } } public void setStops() { if(stops == null) { } } public void setWorld() { setRoutes(); setStops(); } public static Globals getInstance() { if(instance == null) instance = new Globals(); return instance; } } */