public static class

JsonMatcher.Builder

extends Object
java.lang.Object
   ↳ com.urbanairship.json.JsonMatcher.Builder

Class Overview

Builder class.

Summary

Public Methods
JsonMatcher build()
Builds the JsonMatcher instance.
JsonMatcher.Builder setKey(String key)
Sets the key.
JsonMatcher.Builder setScope(List<String> scope)
Sets the scope.
JsonMatcher.Builder setScope(String scope)
Sets the scope.
JsonMatcher.Builder setValueMatcher(ValueMatcher valueMatcher)
Sets the ValueMatcher.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public JsonMatcher build ()

Builds the JsonMatcher instance.

Returns
  • The JsonMatcher instance.

public JsonMatcher.Builder setKey (String key)

Sets the key.

Parameters
key The key.
Returns
  • The Builder instance.

public JsonMatcher.Builder setScope (List<String> scope)

Sets the scope.

Parameters
scope The scope as a list of fields.
Returns
  • The Builder instance.

public JsonMatcher.Builder setScope (String scope)

Sets the scope.

Parameters
scope The scope as a single field.
Returns
  • The Builder instance.

public JsonMatcher.Builder setValueMatcher (ValueMatcher valueMatcher)

Sets the ValueMatcher.

Parameters
valueMatcher The ValueMatcher instance.
Returns
  • The Builder instance.