TagSet: set from other TagSet

This commit is contained in:
Gustl22 2019-02-19 13:35:26 +01:00 committed by Emux
parent f599a14506
commit c0c8abe3a7
No known key found for this signature in database
GPG Key ID: 64ED9980896038C3

View File

@ -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.
*