From 775b2124d57061f936f769b7b4624d76b6f1d0be Mon Sep 17 00:00:00 2001 From: Roman Inflianskas Date: Mon, 16 May 2016 15:54:50 +0300 Subject: [PATCH] City constructor --- OsmAnd-java/src/net/osmand/data/City.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/OsmAnd-java/src/net/osmand/data/City.java b/OsmAnd-java/src/net/osmand/data/City.java index ceb29c0686..0d62cbd036 100644 --- a/OsmAnd-java/src/net/osmand/data/City.java +++ b/OsmAnd-java/src/net/osmand/data/City.java @@ -58,6 +58,13 @@ public class City extends MapObject { return new City(postcode, POSTCODE_INTERNAL_ID--); } + public City(City city) { + this.type = city.type; + this.listOfStreets = new ArrayList<>(city.listOfStreets); + this.postcode = city.postcode; + this.closestCity = city.closestCity; + } + public City(CityType type) { if (type == null) { throw new NullPointerException();