Add method for keys

This commit is contained in:
Victor Shcherb 2020-11-19 15:43:49 +01:00
parent 283673b6cf
commit bcea2e4e0e

View file

@ -1,6 +1,7 @@
package net.osmand.data; package net.osmand.data;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections; import java.util.Collections;
import java.util.HashMap; import java.util.HashMap;
import java.util.Iterator; import java.util.Iterator;
@ -97,6 +98,13 @@ public class Amenity extends MapObject {
return additionalInfo; return additionalInfo;
} }
public Collection<String> getAdditionalInfoKeys() {
if (additionalInfo == null) {
return Collections.emptyList();
}
return additionalInfo.keySet();
}
public void setAdditionalInfo(Map<String, String> additionalInfo) { public void setAdditionalInfo(Map<String, String> additionalInfo) {
this.additionalInfo = null; this.additionalInfo = null;
openingHours = null; openingHours = null;