Changeset 10594 in josm
- Timestamp:
- 2016-07-23T00:31:32+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/Predicates.java
r10582 r10594 80 80 public static <T> Predicate<T> isInstanceOf(final Class<? extends T> clazz) { 81 81 CheckParameterUtil.ensureParameterNotNull(clazz, "clazz"); 82 return o -> clazz.isInstance(o);82 return clazz::isInstance; 83 83 } 84 84 … … 136 136 */ 137 137 public static <T> Predicate<T> inCollection(final Collection<? extends T> target) { 138 return object -> target.contains(object);138 return target::contains; 139 139 } 140 140
Note:
See TracChangeset
for help on using the changeset viewer.