set

open fun set(value: Boolean)
open fun set(value: Int)
open fun set(value: Double)

Replace the last object returned by next or previous.

Parameters

value

Value to replace with.

Throws

next or previous have not been called, or remove or add have been called after the last call to next or previous.


open fun set(@NonNull array: Json.Array)

Replace the last object returned by next or previous.

Parameters

array

Array to replace with.

Throws

next or previous have not been called, or remove or add have been called after the last call to next or previous.


open fun set(@NonNull dict: Json.Dict)

Replace the last object returned by next or previous.

Parameters

dict

Dictionary to replace with.

Throws

next or previous have not been called, or remove or add have been called after the last call to next or previous.


open fun set(@NonNull object: Json)

Replace the last object returned by next or previous.

Parameters

object

Object to replace with.

Throws

next or previous have not been called, or remove or add have been called after the last call to next or previous.


open fun set(@NonNull string: String)

Replace the last object returned by next or previous.

Parameters

string

String to replace with.

Throws

next or previous have not been called, or remove or add have been called after the last call to next or previous.