ActionValue

An ActionValue is a representation of any value that can be described using JSON. It can contain one of the following: a JsonMap, a JsonList, a Number, a Boolean, String, or it can contain null.

Constructors

Link copied to clipboard
constructor(@Nullable jsonValue: JsonValue)
Creates an ActionValue from a JsonValue.
constructor()
Creates an empty ActionValue.

Inherited properties

Link copied to clipboard

Functions

Link copied to clipboard
open fun describeContents(): Int
Link copied to clipboard
open fun equals(@Nullable object: Any): Boolean
Link copied to clipboard
open fun getBoolean(defaultValue: Boolean): Boolean
Gets the contained values as a boolean.
Link copied to clipboard
open fun getDouble(defaultValue: Double): Double
Gets the contained values as an double.
Link copied to clipboard
open fun getInt(defaultValue: Int): Int
Gets the contained values as an int.
Link copied to clipboard
Gets the contained values as a JsonList.
Link copied to clipboard
open fun getLong(defaultValue: Long): Long
Gets the contained values as an long.
Link copied to clipboard
open fun getMap(): JsonMap
Gets the contained values as a JsonMap.
Link copied to clipboard
Gets the contained value as a String.
open fun getString(@NonNull defaultValue: String): String
Gets the contained values as a String.
Link copied to clipboard
open fun hashCode(): Int
Link copied to clipboard
open fun isNull(): Boolean
If the contained value is null.
Link copied to clipboard
Returns the objects represented as a JsonValue.
Link copied to clipboard
open fun toString(): String
Returns the ActionValue as a JSON encoded String.
Link copied to clipboard
open fun wrap(value: Boolean): ActionValue
Wraps a boolean as an ActionValue.
open fun wrap(value: Char): ActionValue
Wraps a char as an ActionValue.
Wraps a JsonSerializable object as an ActionValue.
open fun wrap(value: Int): ActionValue
Wraps an int as an ActionValue.
open fun wrap(@Nullable object: Any): ActionValue
Wraps a com.urbanairship.json.JsonValue compatible object as an ActionValue.
open fun wrap(@Nullable value: String): ActionValue
Wraps a String as an ActionValue.
open fun wrap(value: Long): ActionValue
Wraps a long as an ActionValue.
Link copied to clipboard
open fun writeToParcel(@NonNull dest: Parcel, flags: Int)