Last change
on this file since 7472 was 6380, checked in by Don-vip, 10 years ago |
update license/copyright information
|
-
Property svn:eol-style
set to
native
|
File size:
990 bytes
|
Line | |
---|
1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | package org.openstreetmap.josm.data.osm;
|
---|
3 |
|
---|
4 | import org.openstreetmap.josm.data.Bounds;
|
---|
5 | import org.openstreetmap.josm.tools.CheckParameterUtil;
|
---|
6 |
|
---|
7 | /**
|
---|
8 | * A data source, defined by bounds and textual description for the origin.
|
---|
9 | * @since 247
|
---|
10 | */
|
---|
11 | public class DataSource {
|
---|
12 | /**
|
---|
13 | * The bounds of this data source
|
---|
14 | */
|
---|
15 | public final Bounds bounds;
|
---|
16 | /**
|
---|
17 | * The textual description of the origin (example: "OpenStreetMap Server")
|
---|
18 | */
|
---|
19 | public final String origin;
|
---|
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 | */
|
---|
27 | public DataSource(Bounds bounds, String origin) {
|
---|
28 | CheckParameterUtil.ensureParameterNotNull(bounds, "bounds");
|
---|
29 | this.bounds = bounds;
|
---|
30 | this.origin = origin;
|
---|
31 | }
|
---|
32 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.