add

open fun add(value: Boolean): Boolean

Add a boolean at the end of the list.

Return

Always true.

Parameters

value

Value to add.

Throws


open fun add(value: Double): Boolean

Add a double-precision floating-point number at the end of the list.

Return

Always true.

Parameters

value

Value to add.

Throws


open fun add(value: Int): Boolean

Add an integer at the end of the list.

Return

Always true.

Parameters

value

Value to add.

Throws


open fun add(value: Long): Boolean

Add a long at the end of the list.

Return

Always true.

Parameters

value

Value to add.

Throws


open fun add(location: Int, value: Boolean)

Add a boolean at a location.

Parameters

location

Location to add the string to.

value

The value to add.

Throws


open fun add(location: Int, value: Double)

Add a double-precision floating-point number at a location.

Parameters

location

Location to add the string to.

value

The value to add.

Throws


open fun add(location: Int, value: Int)

Add an integer at a location.

Parameters

location

Location to add the string to.

value

The value to add.

Throws


open fun add(location: Int, value: Long)

Add a long at a location.

Parameters

location

Location to add the string to.

value

The value to add.

Throws


open fun add(location: Int, @NonNull array: Json.Array)

Add an array at a location.

The provided array is cloned before adding.

Parameters

location

Location to add the string to.

array

The array to add.

Throws


open fun add(location: Int, @NonNull dict: Json.Dict)

Add a dictionary at a location.

The provided dictionary is cloned before adding.

Parameters

location

Location to add the string to.

dict

The dictionary to add.

Throws


open fun add(location: Int, @NonNull object: Json)

Add a JSON object at a location.

The provided object is cloned before adding.

Parameters

location

Location to add the JSON object to.

object

Object to add.

Throws


open fun add(location: Int, @NonNull string: String)

Add a string at a location.

Parameters

location

Location to add the string to.

string

The string to add.

Throws


open fun add(@NonNull array: Json.Array): Boolean

Add an array at the end of the list.

The provided array is cloned before adding.

Return

Always true.

Parameters

array

Array to add.

Throws


open fun add(@NonNull dict: Json.Dict): Boolean

Add a dictionary at the end of the list.

The provided dictionary is cloned before adding.

Return

Always true.

Parameters

dict

Dictionary to add.

Throws


open fun add(@NonNull object: Json): Boolean

Add a JSON object at the end of the list.

The provided object is cloned before adding.

Return

Always true.

Parameters

object

Object to add.

Throws


open fun add(@NonNull string: String): Boolean

Add a string at the end of the list.

Return

Always true.

Parameters

string

String to add.

Throws