N

data class N(val value: Long) : AttributeValue

Indicates that the attribute type value is a number. For example:

"N": "16"

Constructors

Link copied to clipboard
constructor(value: Long)

Properties

Link copied to clipboard
val value: Long

Inherited functions

Link copied to clipboard

Casts this AttributeValue as a Bool and retrieves its kotlin.Boolean value. Throws an exception if the AttributeValue is not a Bool.

Link copied to clipboard

Casts this AttributeValue as a Bool and retrieves its kotlin.Boolean value. Returns null if the AttributeValue is not a Bool.

Link copied to clipboard
fun asN(): Long

Casts this AttributeValue as a N and retrieves its kotlin.Long value. Throws an exception if the AttributeValue is not a N.

Link copied to clipboard
fun asNOrNull(): Long?

Casts this AttributeValue as a N and retrieves its kotlin.Long value. Returns null if the AttributeValue is not a N.

Link copied to clipboard
fun asS(): String

Casts this AttributeValue as a S and retrieves its kotlin.String value. Throws an exception if the AttributeValue is not a S.

Link copied to clipboard

Casts this AttributeValue as a S and retrieves its kotlin.String value. Returns null if the AttributeValue is not a S.

Link copied to clipboard
fun asSs(): List<String>

Casts this AttributeValue as a Ss and retrieves its kotlin.collections.List value. Throws an exception if the AttributeValue is not a Ss.

Link copied to clipboard

Casts this AttributeValue as a Ss and retrieves its kotlin.collections.List value. Returns null if the AttributeValue is not a Ss.