Commit 94596845 authored by Christian Meyer's avatar Christian Meyer
Browse files uses LinkedHashMap for underlying maps

        to make iteration order deterministic
parent 5d404367
......@@ -4,6 +4,7 @@ import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.Map;
......@@ -27,7 +28,7 @@ abstract class AbstractDerivedMap<T extends PathfindingMap> extends AbstractDyna
static final double NEUTRAL_WEIGHT = 1d;
/** Pathfinding maps to derive flow directions from. */
private final Map<String, T> underlyingMaps = new HashMap<>();
private final Map<String, T> underlyingMaps = new LinkedHashMap<>();
/** {@code Map} pointing from pathfinding map to the objects wrapping it. */
private final Map<T, Double> weights = new HashMap<>();
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment