public class

TagGroupsMutation

extends Object
implements JsonSerializable
java.lang.Object
   ↳ com.urbanairship.push.TagGroupsMutation

Class Overview

Defines a tag group mutations.

Summary

Public Methods
void apply(Map<StringSet<String>> tagGroups)
boolean equals(Object o)
static List<TagGroupsMutation> fromJsonList(JsonList jsonList)
static TagGroupsMutation fromJsonValue(JsonValue jsonValue)
int hashCode()
static TagGroupsMutation newAddRemoveMutation(Map<StringSet<String>> pendingAddTags, Map<StringSet<String>> pendingRemoveTags)
Creates a mutation from a set of pending add tag groups and pending remove tag groups.
static TagGroupsMutation newAddTagsMutation(String group, Set<String> tags)
Creates a mutation to add tags to a group.
static TagGroupsMutation newRemoveTagsMutation(String group, Set<String> tags)
Creates a mutation to remove tags to a group.
static TagGroupsMutation newSetTagsMutation(String group, Set<String> tags)
Creates a mutation to set tags to a group.
JsonValue toJsonValue()
Returns the objects represented as a JsonValue.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.urbanairship.json.JsonSerializable

Public Methods

public void apply (Map<StringSet<String>> tagGroups)

public boolean equals (Object o)

public static List<TagGroupsMutation> fromJsonList (JsonList jsonList)

public static TagGroupsMutation fromJsonValue (JsonValue jsonValue)

public int hashCode ()

public static TagGroupsMutation newAddRemoveMutation (Map<StringSet<String>> pendingAddTags, Map<StringSet<String>> pendingRemoveTags)

Creates a mutation from a set of pending add tag groups and pending remove tag groups.

Parameters
pendingAddTags Map of pending add tags.
pendingRemoveTags Map of pending remove tags.
Returns
  • Tag group mutation.

public static TagGroupsMutation newAddTagsMutation (String group, Set<String> tags)

Creates a mutation to add tags to a group.

Parameters
group Group ID.
tags Tags to add.
Returns
  • Tag group mutation.

public static TagGroupsMutation newRemoveTagsMutation (String group, Set<String> tags)

Creates a mutation to remove tags to a group.

Parameters
group Group ID.
tags Tags to remove.
Returns
  • Tag group mutation.

public static TagGroupsMutation newSetTagsMutation (String group, Set<String> tags)

Creates a mutation to set tags to a group.

Parameters
group Group ID.
tags Tags to set.
Returns
  • Tag group mutation.

public JsonValue toJsonValue ()

Returns the objects represented as a JsonValue.

Returns
  • The object as a JsonValue.