This commit is contained in:
Victor Shcherb 2015-12-09 19:37:26 +01:00
parent 876cdca737
commit 0a11d13aad

View file

@ -1,5 +1,9 @@
package net.osmand.binary;
import java.util.LinkedHashMap;
import java.util.Map;
import gnu.trove.list.array.TIntArrayList;
import gnu.trove.map.hash.TIntObjectHashMap;
import net.osmand.binary.BinaryMapIndexReader.MapIndex;
@ -52,6 +56,15 @@ public class BinaryMapDataObject {
return objectNames;
}
public Map<Integer, String> getOrderedObjectNames() {
LinkedHashMap<Integer, String> lm = new LinkedHashMap<Integer, String> ();
for (int i = 0; i < namesOrder.size(); i++) {
int nm = namesOrder.get(i);
lm.put(nm, objectNames.get(nm));
}
return lm;
}
public void putObjectName(int type, String name){
if(objectNames == null){
objectNames = new TIntObjectHashMap<String>();