toggle menu
Airship Android SDK
androidJvm
switch theme
search in API
urbanairship-core
/
com.urbanairship.json
/
JsonPredicate
Json
Predicate
open
class
JsonPredicate
:
JsonSerializable
,
Predicate
<
T
>
Class abstracting a JSON predicate. The predicate is contained to the following schema:
:=
:= {
:=
Members
Types
Builder
Link copied to clipboard
open
class
Builder
Builder class.
Predicate
Type
Link copied to clipboard
@
Retention
(
value
=
RetentionPolicy.SOURCE
)
annotation class
PredicateType
Properties
AND_PREDICATE_TYPE
Link copied to clipboard
@
NonNull
val
AND_PREDICATE_TYPE
:
String
=
"and"
NOT_PREDICATE_TYPE
Link copied to clipboard
@
NonNull
val
NOT_PREDICATE_TYPE
:
String
=
"not"
OR_PREDICATE_TYPE
Link copied to clipboard
@
NonNull
val
OR_PREDICATE_TYPE
:
String
=
"or"
Functions
apply
Link copied to clipboard
open
fun
apply
(
@
Nullable
value
:
JsonSerializable
)
:
Boolean
Applies the predicate against an object.
equals
Link copied to clipboard
open
fun
equals
(
@
Nullable
o
:
Any
)
:
Boolean
hash
Code
Link copied to clipboard
open
fun
hashCode
(
)
:
Int
new
Builder
Link copied to clipboard
@
NonNull
open
fun
newBuilder
(
)
:
JsonPredicate.Builder
Builder factory method.
parse
Link copied to clipboard
@
NonNull
open
fun
parse
(
@
Nullable
jsonValue
:
JsonValue
)
:
JsonPredicate
Parses a JsonValue object into a JsonPredicate.
to
Json
Value
Link copied to clipboard
@
NonNull
open
fun
toJsonValue
(
)
:
JsonValue
Returns the objects represented as a JsonValue.