Changeset 8510 in josm for trunk/src/org/openstreetmap/josm/data/conflict
- Timestamp:
- 2015-06-20T23:42:21+02:00 (10 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/data/conflict
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/conflict/Conflict.java
r6313 r8510 103 103 if (my != other.my) 104 104 return false; 105 if(their != other.their) 105 if (their != other.their) 106 106 return false; 107 107 return true; -
trunk/src/org/openstreetmap/josm/data/conflict/ConflictCollection.java
r8465 r8510 26 26 * ConflictCollection conflictCollection = .... 27 27 * 28 * for(Conflict c : conflictCollection) { 28 * for (Conflict c : conflictCollection) { 29 29 * // do something 30 30 * } … … 132 132 public void add(Collection<Conflict<?>> otherConflicts) { 133 133 if (otherConflicts == null) return; 134 for(Conflict<?> c : otherConflicts) { 134 for (Conflict<?> c : otherConflicts) { 135 135 addConflict(c); 136 136 } … … 167 167 public void remove(OsmPrimitive my) { 168 168 Iterator<Conflict<?>> it = iterator(); 169 while(it.hasNext()) { 169 while (it.hasNext()) { 170 170 if (it.next().isMatchingMy(my)) { 171 171 it.remove(); … … 184 184 */ 185 185 public Conflict<?> getConflictForMy(OsmPrimitive my) { 186 for(Conflict<?> c : conflicts) { 186 for (Conflict<?> c : conflicts) { 187 187 if (c.isMatchingMy(my)) 188 188 return c; … … 199 199 */ 200 200 public Conflict<?> getConflictForTheir(OsmPrimitive their) { 201 for(Conflict<?> c : conflicts) { 201 for (Conflict<?> c : conflicts) { 202 202 if (c.isMatchingTheir(their)) 203 203 return c; … … 243 243 public void removeForMy(OsmPrimitive my) { 244 244 Iterator<Conflict<?>> it = iterator(); 245 while(it.hasNext()) { 245 while (it.hasNext()) { 246 246 if (it.next().isMatchingMy(my)) { 247 247 it.remove(); … … 257 257 public void removeForTheir(OsmPrimitive their) { 258 258 Iterator<Conflict<?>> it = iterator(); 259 while(it.hasNext()) { 259 while (it.hasNext()) { 260 260 if (it.next().isMatchingTheir(their)) { 261 261 it.remove(); -
trunk/src/org/openstreetmap/josm/data/conflict/IConflictListener.java
r3083 r8510 4 4 public interface IConflictListener { 5 5 public void onConflictsAdded(ConflictCollection conflicts); 6 6 7 public void onConflictsRemoved(ConflictCollection conflicts); 7 8 }
Note:
See TracChangeset
for help on using the changeset viewer.