- Timestamp:
- 2013-04-02T02:26:07+02:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/MultiMap.java
r5783 r5822 5 5 import java.util.Collection; 6 6 import java.util.HashMap; 7 import java.util.LinkedHashSet; 7 8 import java.util.List; 8 9 import java.util.Map; 9 10 import java.util.Map.Entry; 10 11 import java.util.Set; 11 import java.util.TreeSet;12 12 13 13 /** … … 38 38 Set<B> vals = map.get(key); 39 39 if (vals == null) { 40 vals = new TreeSet<B>();40 vals = new LinkedHashSet<B>(); 41 41 map.put(key, vals); 42 42 } … … 53 53 if (map.containsKey(key)) 54 54 return; 55 map.put(key, new TreeSet<B>());55 map.put(key, new LinkedHashSet<B>()); 56 56 } 57 57 … … 64 64 Set<B> vals = map.get(key); 65 65 if (vals == null) { 66 vals = new TreeSet<B>(values);66 vals = new LinkedHashSet<B>(values); 67 67 map.put(key, vals); 68 68 } … … 93 93 public Set<B> getValues(A key) { 94 94 if (!map.containsKey(key)) 95 return new TreeSet<B>();95 return new LinkedHashSet<B>(); 96 96 return map.get(key); 97 97 }
Note:
See TracChangeset
for help on using the changeset viewer.