Ignore:
Timestamp:
2014-02-18T19:24:21+01:00 (10 years ago)
Author:
simon04
Message:

fix #9598 - Validator: do not report "Overlapping ways" for buildings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/Predicates.java

    r6652 r6870  
    8787
    8888    /**
     89     * Returns a {@link Predicate} executing {@link OsmPrimitive#hasKey(String)}.
     90     */
     91    public static Predicate<OsmPrimitive> hasKey(final String key) {
     92        return new Predicate<OsmPrimitive>() {
     93            @Override
     94            public boolean evaluate(OsmPrimitive p) {
     95                return p.hasKey(key);
     96            }
     97        };
     98    }
     99
     100    /**
    89101     * Returns a {@link Predicate} executing {@link Collection#contains(Object)}.
    90102     */
Note: See TracChangeset for help on using the changeset viewer.