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;
|
||||
|
||||
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;
|
||||
|
|
Loading…
Reference in a new issue