Value

interface Value

A wrapper class for both Number and non-Number objects.

Value can represent a list of value objects.

Types

Companion
Link copied to clipboard
common
object Companion

Functions

equals
Link copied to clipboard
common
abstract operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
abstract override fun hashCode(): Int
toString
Link copied to clipboard
common
abstract override fun toString(): String

Properties

list
Link copied to clipboard
common
open val list: List<Value>

get this value represented as List

type
Link copied to clipboard
common
abstract val type: ValueType

The type of the value

value
Link copied to clipboard
common
abstract val value: Any?

Get raw value of this value

Inheritors

Null
Link copied to clipboard
True
Link copied to clipboard
False
Link copied to clipboard
NumberValue
Link copied to clipboard
StringValue
Link copied to clipboard
EnumValue
Link copied to clipboard
ListValue
Link copied to clipboard
LazyParsedValue
Link copied to clipboard
DoubleArrayValue
Link copied to clipboard

Extensions

boolean
Link copied to clipboard
common
val Value.boolean: Boolean
double
Link copied to clipboard
common
val Value.double: Double
doubleArray
Link copied to clipboard
common
val Value.doubleArray: DoubleArray
enum
Link copied to clipboard
common
inline fun <E : Enum<E>> Value.enum(): E
float
Link copied to clipboard
common
val Value.float: Float
int
Link copied to clipboard
common
val Value.int: Int
isList
Link copied to clipboard
common
fun Value.isList(): Boolean

Check if value is list.

isNull
Link copied to clipboard
common
fun Value.isNull(): Boolean

Check if value is null

long
Link copied to clipboard
common
val Value.long: Long
number
Link copied to clipboard
common
val Value.number: Number

Return Value number content or throw error if value is not a number

numberOrNull
Link copied to clipboard
common
val Value.numberOrNull: Number?

get this value represented as Number

short
Link copied to clipboard
common
val Value.short: Short
string
Link copied to clipboard
common
val Value.string: String
stringList
Link copied to clipboard
common
val Value.stringList: List<String>
toDynamic
Link copied to clipboard
js
fun Value.toDynamic(): dynamic
toJson
Link copied to clipboard
common
fun Value.toJson(descriptor: MetaDescriptor? = null): JsonElement
toMeta
Link copied to clipboard
common
fun Value.toMeta(): Meta