JoyList

JSON-like array view over a mutable list of JoyObject.

Supports typed setters/getters with null-propagation semantics and push/pop operations for stack-like usage.

Functions

Link copied to clipboard
abstract fun array(index: Int): JoyList?
Link copied to clipboard
abstract fun boolean(index: Int): Boolean?
Link copied to clipboard
abstract operator fun get(index: Int): JoyObject?
Link copied to clipboard
abstract operator fun iterator(): Iterator<JoyObject>
Link copied to clipboard
abstract fun number(index: Int): Double?
Link copied to clipboard
abstract fun obj(index: Int): JoyMap?
Link copied to clipboard
abstract fun pop(): JoyObject?
Link copied to clipboard
abstract fun push(value: Boolean?)
abstract fun push(value: Number?)
abstract fun push(value: String?)
Link copied to clipboard
abstract operator fun set(index: Int, value: JoyObject?)
abstract operator fun set(index: Int, value: Boolean?)
abstract operator fun set(index: Int, value: Number?)
abstract operator fun set(index: Int, value: String?)
Link copied to clipboard
abstract fun size(): Int
Link copied to clipboard
abstract fun string(index: Int): String?