- Timestamp:
- 2020-05-17T17:43:35+02:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/PrimitiveData.java
r16445 r16449 87 87 * @param type primitive type 88 88 * @return a filtered list for given primitive type 89 * @deprecated Use {@link Collection#stream()} instead 89 90 */ 91 @Deprecated 90 92 public static <T extends PrimitiveData> List<T> getFilteredList(Collection<T> list, OsmPrimitiveType type) { 91 93 return list.stream().filter(p -> type.getDataClass().isInstance(p)).map(p -> (T) p).collect(Collectors.toList());
Note:
See TracChangeset
for help on using the changeset viewer.