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;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.Iterator;
@ -96,6 +97,13 @@ public class Amenity extends MapObject {
}
return additionalInfo;
}
public Collection<String> getAdditionalInfoKeys() {
if (additionalInfo == null) {
return Collections.emptyList();
}
return additionalInfo.keySet();
}
public void setAdditionalInfo(Map<String, String> additionalInfo) {
this.additionalInfo = null;