public ArrayList<Stop> getStops() { for (int index = 0; index < stops.size(); index++) { if (stops.get(index) == null) { Log.e(TAG, "One of the path stops is null"); } } return stops; }
public Path(ArrayList<Stop> stops, double weight) { this.stops = stops; this.weight = weight; Log.d( TAG, "Path with weight " + String.valueOf(weight) + " has " + String.valueOf(stops.size()) + " stops"); }