Ignore:
Timestamp:
2016-10-07T23:43:52+02:00 (8 years ago)
Author:
simon04
Message:

Default method implementations of Data interface

File:
1 edited

Legend:

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

    r8512 r11095  
    2222     * @return Area object encompassing downloaded data.
    2323     */
    24     Area getDataSourceArea();
     24    default Area getDataSourceArea() {
     25        return DataSource.getDataSourceArea(getDataSources());
     26    }
    2527
    2628    /**
     
    3638     * bounds are defined.
    3739     */
    38     List<Bounds> getDataSourceBounds();
     40    default List<Bounds> getDataSourceBounds() {
     41        return DataSource.getDataSourceBounds(getDataSources());
     42    }
    3943}
Note: See TracChangeset for help on using the changeset viewer.