From c0c8abe3a7eddded494c6f38b63ede68718e6519 Mon Sep 17 00:00:00 2001 From: Gustl22 Date: Tue, 19 Feb 2019 13:35:26 +0100 Subject: [PATCH] TagSet: set from other TagSet --- vtm/src/org/oscim/core/TagSet.java | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/vtm/src/org/oscim/core/TagSet.java b/vtm/src/org/oscim/core/TagSet.java index e802fae5..e62b1180 100644 --- a/vtm/src/org/oscim/core/TagSet.java +++ b/vtm/src/org/oscim/core/TagSet.java @@ -2,7 +2,7 @@ * Copyright 2013 Hannes Janetzek * Copyright 2016 Andrey Novikov * Copyright 2016 devemux86 - * Copyright 2017 Gustl22 + * Copyright 2017-2019 Gustl22 * * This file is part of the OpenScienceMap project (http://www.opensciencemap.org). * @@ -179,6 +179,16 @@ public class TagSet { numTags = newTags; } + /** + * Sets the tags from 'tagSet'. + * + * @param tagSet the tag set + */ + public void set(TagSet tagSet) { + set(tagSet.getTags()); + numTags = tagSet.numTags; + } + /** * Checks if 'tag' is contained in TagSet. *