Changeset 11394 in josm for trunk/src/org/openstreetmap/josm/data/preferences/ListListSetting.java
- Timestamp:
- 2016-12-14T04:19:09+01:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/preferences/ListListSetting.java
r10235 r11394 5 5 import java.util.Collection; 6 6 import java.util.Collections; 7 import java.util.Iterator;8 7 import java.util.List; 9 10 import org.openstreetmap.josm.tools.Utils;11 8 12 9 /** … … 39 36 } 40 37 return new ListListSetting(null); 41 }42 43 @Override44 public boolean equalVal(List<List<String>> otherVal) {45 if (value == null)46 return otherVal == null;47 if (otherVal == null)48 return false;49 if (value.size() != otherVal.size())50 return false;51 Iterator<List<String>> itA = value.iterator();52 Iterator<List<String>> itB = otherVal.iterator();53 while (itA.hasNext()) {54 if (!Utils.equalCollection(itA.next(), itB.next()))55 return false;56 }57 return true;58 38 } 59 39 … … 92 72 return new ListListSetting(null); 93 73 } 94 95 @Override96 public boolean equals(Object other) {97 if (!(other instanceof ListListSetting))98 return false;99 return equalVal(((ListListSetting) other).getValue());100 }101 74 }
Note:
See TracChangeset
for help on using the changeset viewer.