A map-like class that stores key-value pairs of RequestExtrasKey to its associated value for use as DeepLinkRequest.extras.

Construct with emptyRequestExtras or with requestExtras DSL.

Summary

Public functions

operator Boolean

Checks if a value is present for key.

Cmn
open operator Boolean
equals(other: Any?)
Cmn
operator T?
<T : Any> get(key: RequestExtrasKey<T>)

Returns the value for key, or null if absent.

Cmn
open Int
Cmn
Boolean

Returns true if empty, false otherwise.

Cmn
Boolean

Returns true if not empty, false otherwise.

Cmn
operator RequestExtras

Returns a new RequestExtras containing all entries of this instance except keys in other.

Cmn
operator RequestExtras

Returns a new RequestExtras containing all entries of this instance plus entries from other.

Cmn
open String
Cmn

Public properties

Int

Number of key-value pairs stored.

Cmn

Public functions

contains

operator fun contains(key: RequestExtrasKey<*>): Boolean

Checks if a value is present for key.

Parameters
key: RequestExtrasKey<*>

key to check

Returns
Boolean

true if present, false otherwise

equals

open operator fun equals(other: Any?): Boolean

get

operator fun <T : Any> get(key: RequestExtrasKey<T>): T?

Returns the value for key, or null if absent.

Parameters
key: RequestExtrasKey<T>

key associated with value type T

Returns
T?

the value of type T, or null

hashCode

open fun hashCode(): Int

isEmpty

fun isEmpty(): Boolean

Returns true if empty, false otherwise.

isNotEmpty

fun isNotEmpty(): Boolean

Returns true if not empty, false otherwise.

minus

operator fun minus(other: RequestExtras): RequestExtras

Returns a new RequestExtras containing all entries of this instance except keys in other.

plus

operator fun plus(other: RequestExtras): RequestExtras

Returns a new RequestExtras containing all entries of this instance plus entries from other. Entries in other take precedence over duplicate keys.

toString

open fun toString(): String

Public properties

size

val sizeInt

Number of key-value pairs stored.