TagSet: set from other TagSet
This commit is contained in:
parent
f599a14506
commit
c0c8abe3a7
@ -2,7 +2,7 @@
|
|||||||
* Copyright 2013 Hannes Janetzek
|
* Copyright 2013 Hannes Janetzek
|
||||||
* Copyright 2016 Andrey Novikov
|
* Copyright 2016 Andrey Novikov
|
||||||
* Copyright 2016 devemux86
|
* Copyright 2016 devemux86
|
||||||
* Copyright 2017 Gustl22
|
* Copyright 2017-2019 Gustl22
|
||||||
*
|
*
|
||||||
* This file is part of the OpenScienceMap project (http://www.opensciencemap.org).
|
* This file is part of the OpenScienceMap project (http://www.opensciencemap.org).
|
||||||
*
|
*
|
||||||
@ -179,6 +179,16 @@ public class TagSet {
|
|||||||
numTags = newTags;
|
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.
|
* Checks if 'tag' is contained in TagSet.
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user