Rev | Line | |
---|
[298] | 1 | // License: GPL. Copyright 2007 by Immanuel Scholz and others
|
---|
[247] | 2 | package org.openstreetmap.josm.data.osm;
|
---|
| 3 |
|
---|
| 4 | import org.openstreetmap.josm.data.Bounds;
|
---|
| 5 |
|
---|
[290] | 6 | public class DataSource implements Cloneable {
|
---|
[1169] | 7 | public final Bounds bounds;
|
---|
| 8 | public final String origin;
|
---|
| 9 |
|
---|
| 10 | public DataSource(Bounds bounds, String origin) {
|
---|
| 11 | this.bounds = bounds;
|
---|
| 12 | this.origin = origin;
|
---|
[2013] | 13 | if (bounds == null) {
|
---|
| 14 | throw new NullPointerException();
|
---|
| 15 | }
|
---|
[290] | 16 | }
|
---|
| 17 |
|
---|
[1169] | 18 | @Override protected Object clone() throws CloneNotSupportedException {
|
---|
| 19 | return new DataSource(bounds, origin);
|
---|
[290] | 20 | }
|
---|
[247] | 21 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.