Changeset 10657 in josm for trunk/src/org/openstreetmap/josm/data/conflict/ConflictCollection.java
- Timestamp:
- 2016-07-27T02:08:34+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/conflict/ConflictCollection.java
r10378 r10657 12 12 import java.util.Set; 13 13 import java.util.concurrent.CopyOnWriteArrayList; 14 import java.util.function.Predicate; 14 15 15 16 import org.openstreetmap.josm.data.osm.Node; … … 18 19 import org.openstreetmap.josm.data.osm.Way; 19 20 import org.openstreetmap.josm.tools.CheckParameterUtil; 20 import org.openstreetmap.josm.tools.Predicate; 21 import org.openstreetmap.josm.tools.Utils; 21 import org.openstreetmap.josm.tools.SubclassFilteredCollection; 22 22 23 23 /** … … 52 52 53 53 @Override 54 public boolean evaluate(Conflict<? extends OsmPrimitive> conflict) {54 public boolean test(Conflict<? extends OsmPrimitive> conflict) { 55 55 return conflict != null && c.isInstance(conflict.getMy()); 56 56 } … … 364 364 */ 365 365 public final Collection<Conflict<? extends OsmPrimitive>> getNodeConflicts() { 366 return Utils.filter(conflicts, NODE_FILTER_PREDICATE);366 return SubclassFilteredCollection.filter(conflicts, NODE_FILTER_PREDICATE); 367 367 } 368 368 … … 373 373 */ 374 374 public final Collection<Conflict<? extends OsmPrimitive>> getWayConflicts() { 375 return Utils.filter(conflicts, WAY_FILTER_PREDICATE);375 return SubclassFilteredCollection.filter(conflicts, WAY_FILTER_PREDICATE); 376 376 } 377 377 … … 382 382 */ 383 383 public final Collection<Conflict<? extends OsmPrimitive>> getRelationConflicts() { 384 return Utils.filter(conflicts, RELATION_FILTER_PREDICATE);384 return SubclassFilteredCollection.filter(conflicts, RELATION_FILTER_PREDICATE); 385 385 } 386 386 … … 396 396 ConflictCollection conflicts1 = (ConflictCollection) obj; 397 397 return Objects.equals(conflicts, conflicts1.conflicts) && 398 398 Objects.equals(listeners, conflicts1.listeners); 399 399 } 400 400 }
Note:
See TracChangeset
for help on using the changeset viewer.