Merge branch 'develop' of https://github.com/SemvdH/Next-Location into develop

This commit is contained in:
RemoMeijer
2021-01-06 19:29:03 +01:00
4 changed files with 18 additions and 5 deletions

View File

@@ -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;
}
}