public class

JsonMatcher

extends Object
implements Predicate<T> JsonSerializable
java.lang.Object
   ↳ com.urbanairship.json.JsonMatcher

Class Overview

Class representing the leaf node of a JsonPredicate that contains the relevant field matching info.

Summary

Nested Classes
class JsonMatcher.Builder Builder class. 
Public Methods
boolean apply(JsonSerializable jsonSerializable)
boolean equals(Object o)
int hashCode()
static JsonMatcher.Builder newBuilder()
Builder factory method.
static JsonMatcher parse(JsonValue jsonValue)
Parses a JsonValue object into a JsonMatcher.
JsonValue toJsonValue()
Returns the objects represented as a JsonValue.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.urbanairship.Predicate
From interface com.urbanairship.json.JsonSerializable

Public Methods

public boolean apply (JsonSerializable jsonSerializable)

public boolean equals (Object o)

public int hashCode ()

public static JsonMatcher.Builder newBuilder ()

Builder factory method.

Returns
  • A new builder instance.

public static JsonMatcher parse (JsonValue jsonValue)

Parses a JsonValue object into a JsonMatcher.

Parameters
jsonValue The predicate as a JsonValue.
Returns
  • The parsed JsonMatcher.
Throws
JsonException If the JSON is invalid.

public JsonValue toJsonValue ()

Returns the objects represented as a JsonValue.

Returns
  • The object as a JsonValue.