Add method for keys
This commit is contained in:
parent
283673b6cf
commit
bcea2e4e0e
1 changed files with 8 additions and 0 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue