Implement adopting of route object
This commit is contained in:
parent
aa0312c94b
commit
de1f0eac3f
1 changed files with 2 additions and 0 deletions
|
@ -11,6 +11,7 @@ import java.util.ArrayList;
|
||||||
import java.util.Calendar;
|
import java.util.Calendar;
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
import java.util.Comparator;
|
import java.util.Comparator;
|
||||||
|
import java.util.LinkedHashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
|
@ -228,6 +229,7 @@ public class BinaryMapRouteReaderAdapter {
|
||||||
|
|
||||||
public int searchRouteEncodingRule(String tag, String value) {
|
public int searchRouteEncodingRule(String tag, String value) {
|
||||||
if(decodingRules == null) {
|
if(decodingRules == null) {
|
||||||
|
decodingRules = new LinkedHashMap<String, Integer>();
|
||||||
for(int i = 0; i < routeEncodingRules.size(); i++) {
|
for(int i = 0; i < routeEncodingRules.size(); i++) {
|
||||||
RouteTypeRule rt = routeEncodingRules.get(i);
|
RouteTypeRule rt = routeEncodingRules.get(i);
|
||||||
String ks = rt.getTag() +"#" + (rt.getValue() == null ? "" : rt.getValue());
|
String ks = rt.getTag() +"#" + (rt.getValue() == null ? "" : rt.getValue());
|
||||||
|
|
Loading…
Reference in a new issue