HashtagsInput: Add a constructor allowing to initialize remove member

The class already has a similar constructor, but it only allows to
initialize the 'add' member. This means that if one wants to create
an instance with both 'add' and 'remove', it is still necessary to
instantiate it and then explicitly set 'remove'.

Change-Id: Iacb8ca5b708d848dc39c1d48803f1ad312a7ec19
This commit is contained in:
David Pursehouse
2019-07-29 16:55:26 +09:00
parent ec19a9bc45
commit e3d168be3c

View File

@@ -26,4 +26,9 @@ public class HashtagsInput {
public HashtagsInput(Set<String> add) {
this.add = add;
}
public HashtagsInput(Set<String> add, Set<String> remove) {
this(add);
this.remove = remove;
}
}