Changeset 6229 in josm for trunk/src/org/openstreetmap/josm/data
- Timestamp:
- 2013-09-11T00:32:31+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/DataSource.java
r2986 r6229 3 3 4 4 import org.openstreetmap.josm.data.Bounds; 5 import org.openstreetmap.josm.tools.CheckParameterUtil; 5 6 7 /** 8 * A data source, defined by bounds and textual description for the origin. 9 * @since 247 10 */ 6 11 public class DataSource { 12 /** 13 * The bounds of this data source 14 */ 7 15 public final Bounds bounds; 16 /** 17 * The textual description of the origin (example: "OpenStreetMap Server") 18 */ 8 19 public final String origin; 9 20 21 /** 22 * Constructs a new {@code DataSource}. 23 * @param bounds The bounds of this data source 24 * @param origin The textual description of the origin (example: "OpenStreetMap Server") 25 * @throws IllegalArgumentException if bounds is {@code null} 26 */ 10 27 public DataSource(Bounds bounds, String origin) { 28 CheckParameterUtil.ensureParameterNotNull(bounds, "bounds"); 11 29 this.bounds = bounds; 12 30 this.origin = origin; 13 if (bounds == null)14 throw new NullPointerException();15 31 } 16 32 }
Note:
See TracChangeset
for help on using the changeset viewer.