@Override public Location getLocationByRegion(Region region) { if (region != null) { PagedList<Location> locations = listLocations(); for (Location location : locations) { if (region.equals(location.region())) { return location; } } } return null; }
@Override public Location getLocationByRegion(Region region) { if (region != null) { PagedList<Location> locations = listLocations(); for (Location location : locations) { if (region.equals(location.region())) { return location; } } } return null; }