Changeset 6592 in josm for trunk/src/org
- Timestamp:
- 2014-01-01T15:27:25+01:00 (11 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/OsmValidator.java
r6581 r6592 34 34 import org.openstreetmap.josm.data.validation.tests.DuplicatedWayNodes; 35 35 import org.openstreetmap.josm.data.validation.tests.Highways; 36 import org.openstreetmap.josm.data.validation.tests.Lanes; 36 37 import org.openstreetmap.josm.data.validation.tests.MapCSSTagChecker; 37 38 import org.openstreetmap.josm.data.validation.tests.MultipolygonTest; … … 120 121 OpeningHourTest.class, // 2901 .. 2999 121 122 MapCSSTagChecker.class, // 3000 .. 3099 123 Lanes.class, // 3100 .. 3199 122 124 }; 123 125 -
trunk/src/org/openstreetmap/josm/tools/Predicates.java
r6573 r6592 11 11 12 12 private Predicates() { 13 } 14 15 /** 16 * Returns the negation of {@code predicate}. 17 */ 18 public static <T> Predicate<T> not(final Predicate<T> predicate) { 19 return new Predicate<T>() { 20 @Override 21 public boolean evaluate(T obj) { 22 return !predicate.evaluate(obj); 23 } 24 }; 25 } 26 27 /** 28 * Returns a {@link Predicate} executing {@link Utils#equal}. 29 */ 30 public static <T> Predicate<T> equalTo(final T ref) { 31 return new Predicate<T>() { 32 @Override 33 public boolean evaluate(T obj) { 34 return Utils.equal(obj, ref); 35 } 36 }; 13 37 } 14 38
Note:
See TracChangeset
for help on using the changeset viewer.