Implement adopting of route object

This commit is contained in:
Victor Shcherb 2017-08-31 00:25:32 +02:00
parent aa0312c94b
commit de1f0eac3f

View file

@ -11,6 +11,7 @@ import java.util.ArrayList;
import java.util.Calendar;
import java.util.Collections;
import java.util.Comparator;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
@ -228,6 +229,7 @@ public class BinaryMapRouteReaderAdapter {
public int searchRouteEncodingRule(String tag, String value) {
if(decodingRules == null) {
decodingRules = new LinkedHashMap<String, Integer>();
for(int i = 0; i < routeEncodingRules.size(); i++) {
RouteTypeRule rt = routeEncodingRules.get(i);
String ks = rt.getTag() +"#" + (rt.getValue() == null ? "" : rt.getValue());