Changeset 16449 in josm


Ignore:
Timestamp:
2020-05-17T17:43:35+02:00 (3 weeks ago)
Author:
simon04
Message:

Deprecate unused PrimitiveData.getFilteredList

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/PrimitiveData.java

    r16445 r16449  
    8787     * @param type primitive type
    8888     * @return a filtered list for given primitive type
     89     * @deprecated Use {@link Collection#stream()} instead
    8990     */
     91    @Deprecated
    9092    public static <T extends PrimitiveData> List<T> getFilteredList(Collection<T> list, OsmPrimitiveType type) {
    9193        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.