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(value: JsonValue? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

If the contained value is null.

Link copied to clipboard

Gets the contained values as a JsonList.

Link copied to clipboard
val map: JsonMap?

Gets the contained values as a JsonMap.

Link copied to clipboard

Gets the contained value as a String.

Functions

Link copied to clipboard
open override fun describeContents(): Int
Link copied to clipboard
open operator override fun equals(object: Any?): Boolean
Link copied to clipboard
fun getBoolean(defaultValue: Boolean): Boolean

Gets the contained values as a boolean.

Link copied to clipboard
fun getDouble(defaultValue: Double): Double

Gets the contained values as an double.

Link copied to clipboard
fun getInt(defaultValue: Int): Int

Gets the contained values as an int.

Link copied to clipboard
fun getLong(defaultValue: Long): Long

Gets the contained values as an long.

Link copied to clipboard
fun getString(defaultValue: String): String

Gets the contained values as a String.

Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toJsonValue(): JsonValue

Returns the objects represented as a JsonValue.

Link copied to clipboard
open override fun toString(): String

Returns the ActionValue as a JSON encoded String.

Link copied to clipboard
open override fun writeToParcel(dest: Parcel, flags: Int)