(String searchedName)
| 38 | } |
| 39 | |
| 40 | public Place getPlace(String searchedName) { |
| 41 | Object[] placesArray = this.places.toArray(); |
| 42 | for (Object object : placesArray) { |
| 43 | Place posPlace = (Place) object; |
| 44 | if (posPlace.getDisplayName() |
| 45 | .equals(searchedName)) { |
| 46 | return posPlace; |
| 47 | } |
| 48 | } |
| 49 | return null; |
| 50 | } |
| 51 | |
| 52 | public void addPlace(Place place) { |
| 53 | this.places.add(place); |
nothing calls this directly
no test coverage detected