Changeset 10742 in josm for trunk/src/org/openstreetmap/josm/tools
- Timestamp:
- 2016-08-06T01:08:18+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/Utils.java
r10721 r10742 143 143 public static <T> boolean exists(Iterable<T> collection, Class<? extends T> clazz) { 144 144 CheckParameterUtil.ensureParameterNotNull(clazz, "clazz"); 145 return exists(collection,clazz::isInstance);145 return StreamUtils.toStream(collection).anyMatch(clazz::isInstance); 146 146 } 147 147
Note:
See TracChangeset
for help on using the changeset viewer.