Merge branch 'develop' of https://github.com/SemvdH/Next-Location into develop
This commit is contained in:
@@ -32,4 +32,13 @@ public enum LocationListManager {
|
||||
this.locationList = locationLoader.load();
|
||||
}
|
||||
|
||||
public Location findByName(String name) {
|
||||
Location res = null;
|
||||
for (Location location : this.locationList) {
|
||||
if (location.getName().equals(name)) res = location;
|
||||
break;
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user