java.lang.Object | |
↳ | com.urbanairship.json.JsonPredicate |
Class abstracting a JSON predicate. The predicate is contained to the following schema:
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
class | JsonPredicate.Builder | Builder class. | |||||||||
@interface | JsonPredicate.PredicateType |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | AND_PREDICATE_TYPE | ||||||||||
String | NOT_PREDICATE_TYPE | ||||||||||
String | OR_PREDICATE_TYPE |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
boolean | apply(JsonSerializable value) | ||||||||||
boolean | equals(Object o) | ||||||||||
int | hashCode() | ||||||||||
static JsonPredicate.Builder |
newBuilder()
Builder factory method.
| ||||||||||
static JsonPredicate |
parse(JsonValue jsonValue)
Parses a JsonValue object into a JsonPredicate.
| ||||||||||
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
|
Builder factory method.
Parses a JsonValue object into a JsonPredicate.
jsonValue | The predicate as a JsonValue. |
---|
JsonException | If the jsonValue defines invalid JsonPredicate. |
---|
Returns the objects represented as a JsonValue.