public class

TagGroupsEditor

extends Object
java.lang.Object
   ↳ com.urbanairship.push.TagGroupsEditor

Class Overview

Interface used for modifying tag groups.

Summary

Fields
protected final Map<StringSet<String>> tagsToAdd
protected final Map<StringSet<String>> tagsToRemove
Public Methods
TagGroupsEditor addTag(String tagGroup, String tag)
Add a tag to the tag group.
TagGroupsEditor addTags(String tagGroup, Set<String> tags)
Add a set of tags to the tag group.
void apply()
Apply the tag group changes.
TagGroupsEditor removeTag(String tagGroup, String tag)
Remove a tag from the tag group.
TagGroupsEditor removeTags(String tagGroup, Set<String> tags)
Remove a set of tags from the tag group.
[Expand]
Inherited Methods
From class java.lang.Object

Fields

protected final Map<StringSet<String>> tagsToAdd

protected final Map<StringSet<String>> tagsToRemove

Public Methods

public TagGroupsEditor addTag (String tagGroup, String tag)

Add a tag to the tag group.

Parameters
tagGroup The tag group string.
tag The tag string.
Returns
  • The TagGroupsEditor.

public TagGroupsEditor addTags (String tagGroup, Set<String> tags)

Add a set of tags to the tag group.

Parameters
tagGroup The tag group string.
tags The tags set.
Returns
  • The TagGroupsEditor

public void apply ()

Apply the tag group changes.

public TagGroupsEditor removeTag (String tagGroup, String tag)

Remove a tag from the tag group.

Parameters
tagGroup The tag group string.
tag The tag string.
Returns
  • The TagGroupsEditor.

public TagGroupsEditor removeTags (String tagGroup, Set<String> tags)

Remove a set of tags from the tag group.

Parameters
tagGroup The tag group string.
tags The tags set.
Returns
  • The TagGroupsEditor.